blob: cfaf7beaa6a990ca22c1c16a9a22afca02540476 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# Verifies that the jobserver is present
add_custom_command(OUTPUT custom_command.txt
JOB_SERVER_AWARE ON
COMMENT "Should detect jobserver support"
COMMAND ${DETECT_JOBSERVER} "custom_command.txt"
)
# trigger the custom command to run
add_custom_target(dummy ALL
JOB_SERVER_AWARE ON
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/custom_command.txt
COMMAND ${DETECT_JOBSERVER} "custom_target.txt"
)
|