cmake/Tests/RunCMake/Ninja/CustomCommandDepfile-check.cmake

13 lines
577 B
CMake
Raw Normal View History

2016-10-30 18:24:19 +01:00
set(log "${RunCMake_BINARY_DIR}/CustomCommandDepfile-build/build.ninja")
file(READ "${log}" build_file)
2021-09-14 00:13:48 +02:00
set(RunCMake_TEST_FAILED)
2016-10-30 18:24:19 +01:00
if(NOT "${build_file}" MATCHES "depfile = test\\.d")
2023-07-02 19:51:09 +02:00
string(CONCAT no_test_d "Log file:\n ${log}\n" "does not have expected line: depfile = test.d")
list(APPEND RunCMake_TEST_FAILED "${no_test_d}")
2021-09-14 00:13:48 +02:00
endif()
if(NOT "${build_file}" MATCHES "depfile = test_Debug\\.d")
2023-07-02 19:51:09 +02:00
string(CONCAT no_test_Debug_d "\nLog file:\n ${log}\n" "does not have expected line: depfile = test_Debug.d")
list(APPEND RunCMake_TEST_FAILED "${no_test_Debug_d}")
2016-10-30 18:24:19 +01:00
endif()