Trick CTest so the test suite runs when cross-compiling.
[ginac.git] / check / CMakeLists.txt
index 4e9e7454f187d31c6446c3e444e70f1d936d9f31..0243617cb97710ff640645ef5904c252e469924b 100644 (file)
@@ -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)