blob: d92e84271993e05596866972cdfefac86631b26b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# 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"
)
|