From: maier Date: Mon, 16 Sep 2013 00:29:28 +0000 (+0000) Subject: Bugfix X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4550a95f0f7deddbd7c5fa62399775dbe60292d9;p=dealii-svn.git Bugfix git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@30722 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index b41f9899c9..c8f8e3da5a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -64,14 +64,11 @@ FOREACH(_category ${_categories}) # avoid stale test definitions: FILE(REMOVE ${CMAKE_CURRENT_BINARY_DIR}/${_category}/CTestTestfile.cmake) - ADD_CUSTOM_COMMAND(OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/${_category} - COMMAND ${CMAKE_COMMAND} -E make_directory - ${CMAKE_CURRENT_BINARY_DIR}/${_category} - ) ADD_CUSTOM_TARGET(setup_test_${_category} COMMAND ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/${_category} - COMMAND ${CMAKE_COMMAND} + COMMAND cd ${CMAKE_CURRENT_BINARY_DIR}/${_category} && + ${CMAKE_COMMAND} -G${CMAKE_GENERATOR} -DDEAL_II_DIR=${CMAKE_BINARY_DIR} -DDEAL_II_SOURCE_DIR=${CMAKE_SOURCE_DIR} @@ -81,7 +78,6 @@ FOREACH(_category ${_categories}) -DTEST_TIME_LIMIT=${TEST_TIME_LIMIT} # TODO: Refactor ${CMAKE_CURRENT_SOURCE_DIR}/${_category} > /dev/null # Shoo! - WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${_category} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/${_category} COMMENT "Processing ./tests/${_category}" )