summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/ExternalProject/GNUMakeJobServerAware.cmake
blob: 3f688caf7a9e4342e22cebfa9089e9ad46d367f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
include(ExternalProject)
ExternalProject_Add(Foo
  SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/Foo
  BUILD_COMMAND ${CMAKE_COMMAND} --build <BINARY_DIR>
  BUILD_JOB_SERVER_AWARE 1
  INSTALL_COMMAND ""
)

# 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
)