]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: Bugfix: Do not use >/dev/null on native Windows targets
authorMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 14 Nov 2013 23:29:32 +0000 (23:29 +0000)
committerMatthias Maier <tamiko@kyomu.43-1.org>
Thu, 14 Nov 2013 23:29:32 +0000 (23:29 +0000)
git-svn-id: https://svn.dealii.org/trunk@31669 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/tests/CMakeLists.txt

index 3a2d588df4e5f6e47d088a9ffe7eeba3eb94aac9..66f634baac09f5c6cf3071413ea7cb4b48ac9ea5 100644 (file)
@@ -72,6 +72,13 @@ FOREACH(_var
   ENDIF()
 ENDFOREACH()
 
+# Be as quiet as possible:
+IF(CMAKE_SYSTEM_NAME MATCHES "Windows")
+  SET(_shoo)
+ELSE()
+  SET(_shoo >/dev/null)
+ENDIF()
+
 #
 # Glob together a list of all subfolders to set up:
 #
@@ -101,7 +108,7 @@ FOREACH(_category ${_categories})
         ${CMAKE_CURRENT_BINARY_DIR}/${_category}
       COMMAND cd ${CMAKE_CURRENT_BINARY_DIR}/${_category} &&
         ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} ${_options} ${_category_dir}
-        > /dev/null # Shoo!
+        ${_shoo}
       DEPENDS ${_category_dir}
       COMMENT "Processing tests/${_category}"
       )
@@ -113,14 +120,14 @@ FOREACH(_category ${_categories})
     ADD_CUSTOM_TARGET(regen_tests_${_category}
       COMMAND [ ! -d ${_category} ] || ${CMAKE_COMMAND}
         --build ${CMAKE_CURRENT_BINARY_DIR}/${_category} --target regenerate
-        > /dev/null # Shoo!
+        ${_shoo}
       )
     ADD_DEPENDENCIES(regen_tests regen_tests_${_category})
 
     ADD_CUSTOM_TARGET(clean_tests_${_category}
       COMMAND [ ! -d ${_category} ] || ${CMAKE_COMMAND}
         --build ${CMAKE_CURRENT_BINARY_DIR}/${_category} --target clean
-        > /dev/null # Shoo!
+        ${_shoo}
       )
     ADD_DEPENDENCIES(clean_tests clean_tests_${_category})
 
@@ -154,3 +161,4 @@ FOREACH(_category ${_categories})
 ENDFOREACH()
 
 MESSAGE(STATUS "Regenerating testsuite subprojects - Done")
+MESSAGE(STATUS "")

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.