From 7274c214ef0e9efea59150d77dbd81147e63eac8 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 14 Nov 2013 23:29:32 +0000 Subject: [PATCH] CMake: Bugfix: Do not use >/dev/null on native Windows targets git-svn-id: https://svn.dealii.org/trunk@31669 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/tests/CMakeLists.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/deal.II/tests/CMakeLists.txt b/deal.II/tests/CMakeLists.txt index 3a2d588df4..66f634baac 100644 --- a/deal.II/tests/CMakeLists.txt +++ b/deal.II/tests/CMakeLists.txt @@ -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 "") -- 2.39.5