diff options
author | Brad King <brad.king@kitware.com> | 2023-09-18 22:11:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-09-18 22:11:32 (GMT) |
commit | be5603d03132f5f2272419f5de268ea4f17b7023 (patch) | |
tree | 1c2f4810546a1741829422e28f14f468fd81982d /Tests | |
parent | d007eb70468437cb7a1f30d160f3b97263cbc087 (diff) | |
download | CMake-be5603d03132f5f2272419f5de268ea4f17b7023.zip CMake-be5603d03132f5f2272419f5de268ea4f17b7023.tar.gz CMake-be5603d03132f5f2272419f5de268ea4f17b7023.tar.bz2 |
Tests: Fix ExportImport test with read-only source tree
Diffstat (limited to 'Tests')
-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 |