You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cmake/Tests/RunCMake/Make/GNUMakeJobServerAware.cmake

32 lines
922 B

# Test JOB_SERVER_AWARE with custom commands
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/missing"
JOB_SERVER_AWARE ON
COMMAND $(CMAKE_COMMAND) -E true
)
add_custom_target(dummy ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/missing")
# Test JOB_SERVER_AWARE with custom targets
add_custom_target(
dummy2 ALL
JOB_SERVER_AWARE ON
COMMAND $(CMAKE_COMMAND) -E true
)
# Test JOB_SERVER_AWARE with custom commands with WORKING_DIRECTORY
add_custom_command(
OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/missing2"
JOB_SERVER_AWARE ON
COMMAND $(CMAKE_COMMAND) -E true
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Foo"
)
add_custom_target(dummy3 ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/missing2")
# Test JOB_SERVER_AWARE with custom targets with WORKING_DIRECTORY
add_custom_target(
dummy4 ALL
JOB_SERVER_AWARE ON
COMMAND $(CMAKE_COMMAND) -E true
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/Foo"
)