diff options
author | Brad King <brad.king@kitware.com> | 2023-09-19 13:10:36 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-09-19 13:10:44 (GMT) |
commit | 9e641b73c137c2073884e5049c79acb982fda031 (patch) | |
tree | cccd186751fc5ac128025ce5495615976a7bd6e1 | |
parent | 3d3c49cd9c8ae9db3f3d3ddcffba495837b41455 (diff) | |
parent | be5603d03132f5f2272419f5de268ea4f17b7023 (diff) | |
download | CMake-9e641b73c137c2073884e5049c79acb982fda031.zip CMake-9e641b73c137c2073884e5049c79acb982fda031.tar.gz CMake-9e641b73c137c2073884e5049c79acb982fda031.tar.bz2 |
Merge topic 'test-ExportImport'
be5603d031 Tests: Fix ExportImport test with read-only source tree
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8813
-rw-r--r-- | Tests/ExportImport/Import/A/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/ExportImport/Import/A/CMakeLists.txt b/Tests/ExportImport/Import/A/CMakeLists.txt index 5bafdf8..2c5662d 100644 --- a/Tests/ExportImport/Import/A/CMakeLists.txt +++ b/Tests/ExportImport/Import/A/CMakeLists.txt @@ -462,7 +462,7 @@ if (((CMAKE_C_COMPILER_ID STREQUAL GNU AND CMAKE_C_COMPILER_VERSION VERSION_GREA unset(EXP_ERROR_VARIABLE CACHE) try_compile(EXP_ERROR_VARIABLE - "${CMAKE_CURRENT_SOURCE_DIR}/test_system" + "${CMAKE_CURRENT_BINARY_DIR}/test_system" "${CMAKE_CURRENT_SOURCE_DIR}/test_system.cpp" COMPILE_DEFINITIONS "-Wunused-variable -Werror=unused-variable" LINK_LIBRARIES exp_systemlib @@ -476,7 +476,7 @@ if (((CMAKE_C_COMPILER_ID STREQUAL GNU AND CMAKE_C_COMPILER_VERSION VERSION_GREA unset(EXP_RUN_VAR CACHE) unset(EXP_COMPILE_VAR CACHE) try_run(EXP_RUN_VAR EXP_COMPILE_VAR - "${CMAKE_CURRENT_SOURCE_DIR}/test_system" + "${CMAKE_CURRENT_BINARY_DIR}/test_system" "${CMAKE_CURRENT_SOURCE_DIR}/test_system.cpp" COMPILE_DEFINITIONS "-Wunused-variable -Werror=unused-variable" LINK_LIBRARIES exp_systemlib @@ -493,7 +493,7 @@ if (((CMAKE_C_COMPILER_ID STREQUAL GNU AND CMAKE_C_COMPILER_VERSION VERSION_GREA unset(BLD_ERROR_VARIABLE CACHE) try_compile(BLD_ERROR_VARIABLE - "${CMAKE_CURRENT_SOURCE_DIR}/test_system" + "${CMAKE_CURRENT_BINARY_DIR}/test_system" "${CMAKE_CURRENT_SOURCE_DIR}/test_system.cpp" COMPILE_DEFINITIONS "-Wunused-variable -Werror=unused-variable" LINK_LIBRARIES bld_systemlib @@ -507,7 +507,7 @@ if (((CMAKE_C_COMPILER_ID STREQUAL GNU AND CMAKE_C_COMPILER_VERSION VERSION_GREA unset(BLD_RUN_VAR CACHE) unset(BLD_COMPILE_VAR CACHE) try_run(BLD_RUN_VAR BLD_COMPILE_VAR - "${CMAKE_CURRENT_SOURCE_DIR}/test_system" + "${CMAKE_CURRENT_BINARY_DIR}/test_system" "${CMAKE_CURRENT_SOURCE_DIR}/test_system.cpp" COMPILE_DEFINITIONS "-Wunused-variable -Werror=unused-variable" LINK_LIBRARIES bld_systemlib |