From: Alexei Sheplyakov Date: Fri, 27 Jul 2012 18:56:40 +0000 (+0300) Subject: Trick CTest so the test suite runs when cross-compiling. X-Git-Tag: release_1-6-3~56 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=dab7b85132ee3a0def2e450e9a236f53354bf258;ds=inline Trick CTest so the test suite runs when cross-compiling. The test suite can be run in some cross-compilation setups (say, MinGW on Linux). Howerver CTest's add_test command does not add the .exe suffix on its own, as a result `make test' fails. Let's help add_test a bit. --- diff --git a/check/CMakeLists.txt b/check/CMakeLists.txt index 4e9e7454..0243617c 100644 --- a/check/CMakeLists.txt +++ b/check/CMakeLists.txt @@ -71,7 +71,7 @@ macro(add_ginac_test thename) add_executable(${thename} EXCLUDE_FROM_ALL ${${thename}_sources}) target_link_libraries(${thename} ginac) add_dependencies(check ${thename}) - add_test(${thename} ${thename}) + add_test(NAME ${thename} COMMAND ${thename}${CMAKE_EXECUTABLE_SUFFIX}) endmacro() macro(add_ginac_timing thename)