mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-06 23:29:31 -06:00
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.
21 lines
560 B
CMake
21 lines
560 B
CMake
set(CMAKE_INTERMEDIATE_DIR_STRATEGY FULL CACHE STRING "" FORCE)
|
|
|
|
include(ExternalProject)
|
|
ExternalProject_Add(Foo
|
|
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Foo
|
|
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=<INSTALL_DIR>
|
|
BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR>
|
|
BUILD_JOB_SERVER_AWARE 1
|
|
INSTALL_COMMAND ${CMAKE_COMMAND} --install <BINARY_DIR>
|
|
INSTALL_JOB_SERVER_AWARE 1
|
|
)
|
|
|
|
# Add a second step to test JOB_SERVER_AWARE
|
|
ExternalProject_Add_Step(Foo
|
|
second_step
|
|
COMMAND ${CMAKE_COMMAND} -E true
|
|
DEPENDEES build
|
|
ALWAYS 1
|
|
JOB_SERVER_AWARE 1
|
|
)
|