add_test: Relative WORKING_DIRECTORY behavior unexpected
If providing a relative path using the WORKING_DIRECTORY
option with add_test()
, it is treated as relative to the directory where ctest
was run (i.e. the current directory when issuing the ctest
command). To be consistent with other CMake behavior, it should be treated as relative to CMAKE_CURRENT_BINARY_DIR
.