mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-28 04:09:35 +03:00
14 lines
421 B
CMake
14 lines
421 B
CMake
# 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} --present "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} --present "custom_target.txt"
|
|
)
|