ctest: support a new --objects-dir argument

When shorter object directories are used, CTest needs to know where to
look for artifacts.
This commit is contained in:
John Parent
2025-05-21 13:53:03 +02:00
committed by Ben Boeckel
parent dcba9ed828
commit c6763bb021
5 changed files with 30 additions and 6 deletions

View File

@@ -60,7 +60,7 @@ endif()
if(CTEST_USE_LAUNCHERS)
set(__launch_common_options
"--target-name <TARGET_NAME> --current-build-dir <CMAKE_CURRENT_BINARY_DIR>")
"--target-name <TARGET_NAME> --current-build-dir <CMAKE_CURRENT_BINARY_DIR> --build-dir <CMAKE_BINARY_DIR> --object-dir <TARGET_SUPPORT_DIR>")
set(__launch_compile_options
"${__launch_common_options} --output <OBJECT> --source <SOURCE> --language <LANGUAGE>")