Files
cmake/Tests/RunCMake/CompilerChange/ToolchainFromFile-step2-prep.cmake
Aiden Woodruff 7a989ed58a CMAKE_TOOLCHAIN_FILE: Detect path changes and reset cache
If the path to the toolchain file changes then anything in the cache
that's derived from the toolchain may need to be recomputed.  Detect
this case and start a fresh build.

Issue: #27867
Signed-off-by: Aiden Woodruff <aiden.woodruff@kitware.com>
2026-06-29 12:09:16 -04:00

5 lines
98 B
CMake

file(WRITE
"${RunCMake_TEST_BINARY_DIR}/toolchain.txt"
"${RunCMake_BINARY_DIR}/bar.cmake\n"
)