Files
CMake/Tests/RunCMake/File_Configure/SubDir-check.cmake
Brad King e5f5eeca2f file: Fix CONFIGURE output relative path
In commit a6fee09484 (file: Add CONFIGURE subcommand, 2020-03-06,
v3.18.0-rc1~584^2) we accidentally treated relative path outputs
with respect to the current working directory.  Treat them with
respect to the current binary directory instead.

Fixes: #20885
2020-06-29 09:20:42 -04:00

5 lines
168 B
CMake

set(expected "${RunCMake_TEST_BINARY_DIR}/SubDir/out.txt")
if(NOT EXISTS "${expected}")
set(RunCMake_TEST_FAILED "Expected file not created:\n ${expected}")
endif()