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

9 lines
478 B
CMake
Raw Normal View History

2019-11-11 23:01:05 +01:00
set(log "${RunCMake_BINARY_DIR}/CustomCommandJobPool-build/build.ninja")
file(READ "${log}" build_file)
if(NOT "${build_file}" MATCHES "pool = custom_command_pool")
2023-07-02 19:51:09 +02:00
string(CONCAT RunCMake_TEST_FAILED "Log file:\n ${log}\n" "does not have expected line: pool = custom_command_pool")
2019-11-11 23:01:05 +01:00
endif()
if(NOT "${build_file}" MATCHES "pool = custom_target_pool")
2023-07-02 19:51:09 +02:00
string(CONCAT RunCMake_TEST_FAILED "Log file:\n ${log}\n" "does not have expected line: pool = custom_target_pool")
2019-11-11 23:01:05 +01:00
endif()