]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: The obligatory bugfix...
authorMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 16 Jul 2014 21:44:43 +0000 (21:44 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Wed, 16 Jul 2014 21:44:43 +0000 (21:44 +0000)
git-svn-id: https://svn.dealii.org/trunk@33186 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/tests/CMakeLists.txt

index 764d688f011b4d68c5af338bf7637656a2ba61e0..56711611e556a2ec156f45514f2e6bfe198f5096 100644 (file)
@@ -113,16 +113,16 @@ FOREACH(_category ${_categories})
 
     ADD_CUSTOM_TARGET(regen_tests_${_category}
       COMMAND
-        test ! -f ${CMAKE_BINARY_DIR}/tests/${_category} || ${CMAKE_COMMAND}
-        --build ${CMAKE_BINARY_DIR}/${_category} --target regenerate
+        test ! -d ${CMAKE_BINARY_DIR}/tests/${_category} || ${CMAKE_COMMAND}
+        --build ${CMAKE_BINARY_DIR}/tests/${_category} --target regenerate
       COMMENT "Processing tests/${_category}"
       )
     ADD_DEPENDENCIES(regen_tests regen_tests_${_category})
 
     ADD_CUSTOM_TARGET(clean_tests_${_category}
       COMMAND
-        test ! -f ${CMAKE_BINARY_DIR}/tests/${_category} || ${CMAKE_COMMAND}
-        --build ${CMAKE_BINARY_DIR}/${_category} --target clean
+        test ! -d ${CMAKE_BINARY_DIR}/tests/${_category} || ${CMAKE_COMMAND}
+        --build ${CMAKE_BINARY_DIR}/tests/${_category} --target clean
       COMMENT "Processing tests/${_category}"
       )
     ADD_DEPENDENCIES(clean_tests clean_tests_${_category})

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.