diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CMakeLists.txt | 8 | ||||
-rw-r--r-- | Source/cmake.cxx | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/Source/CMakeLists.txt b/Source/CMakeLists.txt index bd27b33..efe2b9f 100644 --- a/Source/CMakeLists.txt +++ b/Source/CMakeLists.txt @@ -406,7 +406,11 @@ IF(BUILD_TESTING) IF(CMAKE_CONFIGURATION_TYPES) SET(LIBNAME_DIR Debug) ENDIF(CMAKE_CONFIGURATION_TYPES) - + IF(WIN32) + SET(RUN_DIR "${CMake_BINARY_DIR}/Tests/LibName/lib/${LIBNAME_DIR}") + ELSE(WIN32) + SET(RUN_DIR "${CMake_BINARY_DIR}/Tests/LibName/") + ENDIF(WIN32) ADD_TEST(LibName ${CMAKE_CTEST_COMMAND} --build-and-test "${CMake_SOURCE_DIR}/Tests/LibName" @@ -415,7 +419,7 @@ IF(BUILD_TESTING) --build-generator ${CMAKE_TEST_GENERATOR} --build-makeprogram ${CMAKE_TEST_MAKEPROGRAM} --build-project LibName - --build-run-dir "${CMake_BINARY_DIR}/Tests/LibName/lib/${LIBNAME_DIR}" + --build-run-dir "${RUN_DIR}" --test-command foobar ) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 910ce87..db91e21 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -23,11 +23,11 @@ #include "cmCommand.h" #include "cmFileTimeComparison.h" #include "cmGeneratedFileStream.h" +#include "cmVersion.h" #if defined(CMAKE_BUILD_WITH_CMAKE) # include "cmDependsFortran.h" // For -E cmake_copy_f90_mod callback. # include "cmVariableWatch.h" -# include "cmVersion.h" # include <cmsys/Terminal.h> #endif |