summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/Ninja/CustomCommandJobPool-check.cmake
blob: 793b5d24a15f25a0de14ec5dcd1ae041b9025a02 (plain)
1
2
3
4
5
6
7
8
set(log "${RunCMake_BINARY_DIR}/CustomCommandJobPool-build/build.ninja")
file(READ "${log}" build_file)
if(NOT "${build_file}" MATCHES "pool = custom_command_pool")
  string(CONCAT RunCMake_TEST_FAILED "Log file:\n ${log}\n" "does not have expected line: pool = custom_command_pool")
endif()
if(NOT "${build_file}" MATCHES "pool = custom_target_pool")
  string(CONCAT RunCMake_TEST_FAILED "Log file:\n ${log}\n" "does not have expected line: pool = custom_target_pool")
endif()