Commit fe9a903d authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cmake-bin-link-job-pool'

b7509dd6

 Add option to configure Ninja link job pool for CMake's own binaries
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !3901
parents 90bb63a5 b7509dd6
Pipeline #148183 failed with stage
in 0 seconds
......@@ -1193,6 +1193,11 @@ if(WIN32)
endforeach()
endif()
if(CMake_JOB_POOL_LINK_BIN)
set_property(TARGET ${_tools} PROPERTY JOB_POOL_LINK "link-bin")
set_property(GLOBAL APPEND PROPERTY JOB_POOLS "link-bin=${CMake_JOB_POOL_LINK_BIN}")
endif()
# Install tools
foreach(_tool ${_tools})
......
......@@ -34,5 +34,9 @@ else()
target_link_libraries(ccmake cmForm)
endif()
if(CMake_JOB_POOL_LINK_BIN)
set_property(TARGET ccmake PROPERTY JOB_POOL_LINK "link-bin")
endif()
CMake_OPTIONAL_COMPONENT(ccmake)
install(TARGETS ccmake DESTINATION ${CMAKE_BIN_DIR} ${COMPONENT})
......@@ -178,6 +178,10 @@ if(WIN32)
target_sources(cmake-gui PRIVATE $<TARGET_OBJECTS:CMakeVersion>)
endif()
if(CMake_JOB_POOL_LINK_BIN)
set_property(TARGET cmake-gui PROPERTY JOB_POOL_LINK "link-bin")
endif()
# cmake-gui has not been updated for `include-what-you-use`.
# Block the tool until this is done.
set_target_properties(cmake-gui PROPERTIES
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment