diff --git a/cmake/EigenTesting.cmake b/cmake/EigenTesting.cmake index 1ddaa1235..639790cd1 100644 --- a/cmake/EigenTesting.cmake +++ b/cmake/EigenTesting.cmake @@ -230,10 +230,10 @@ macro(ei_add_failtest testname) # Add the tests to ctest. add_test(NAME ${test_target_ok} - COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ok} --config $ + COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ok} --config $ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) add_test(NAME ${test_target_ko} - COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ko} --config $ + COMMAND ${CMAKE_COMMAND} --build . --target ${test_target_ko} --config $ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) # Expect the second test to fail