How to overwrite Ctest default timeout 1500 in CMakeLists.txt

Viewed 8191

My CMakeLists.txt includes the lines

include(CTest)
enable_testing()
set(CTEST_TEST_TIMEOUT 3)
add_test(...)

ctest works, but ignores my attempt to set the timeout. Rather, it runs with the default timeout of 1500.

How to change the default timeout? How is CTEST_TEST_TIMEOUT meant to be used?

1 Answers
Related