mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 21:59:54 -06:00
Provide a way for custom commands and targets to set the pool variable of the ninja build statement. Setting `JOB_POOL` is not compatible with `USES_TERMINAL`, which implies the `console` pool. The option is silently ignored with other generators. Closes: #18483
9 lines
452 B
CMake
9 lines
452 B
CMake
set(log "${RunCMake_BINARY_DIR}/CustomCommandJobPool-build/build.ninja")
|
|
file(READ "${log}" build_file)
|
|
if(NOT "${build_file}" MATCHES "pool = custom_command_pool")
|
|
set(RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected line: pool = custom_command_pool")
|
|
endif()
|
|
if(NOT "${build_file}" MATCHES "pool = custom_target_pool")
|
|
set(RunCMake_TEST_FAILED "Log file:\n ${log}\ndoes not have expected line: pool = custom_target_pool")
|
|
endif()
|