mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-26 04:09:35 +03:00
Save original input value of CMAKE_TOOLCHAIN_FILE also before normalization or relative searching to avoid reconfiguring because the full path doesn't match the input. Tests correct behavior avoiding reconfigures and ensuring reconfigure on toolchain change from preset. Fixes: #24942
10 lines
363 B
CMake
10 lines
363 B
CMake
file(REMOVE_RECURSE "${RunCMake_TEST_SOURCE_DIR}")
|
|
file(MAKE_DIRECTORY "${RunCMake_TEST_SOURCE_DIR}")
|
|
file(COPY
|
|
"${RunCMake_SOURCE_DIR}/CMakeLists.txt"
|
|
"${RunCMake_SOURCE_DIR}/RelativeToolchainSource-step1.cmake"
|
|
"${RunCMake_SOURCE_DIR}/RelativeToolchainSource-step2.cmake"
|
|
"${RunCMake_BINARY_DIR}/foo.cmake"
|
|
DESTINATION "${RunCMake_TEST_SOURCE_DIR}"
|
|
)
|