mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 01:49:23 -05:00
050f891d81
Since it can be set in the environment when running the test suite, guard tests which are sensitive to intermediate directory strategy changes with explicit settings.
34 lines
987 B
CMake
34 lines
987 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
# 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"
|
|
)
|