File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -11,12 +11,17 @@ endif()
11
11
list (APPEND CMAKE_MODULE_PATH
12
12
"${CMAKE_CURRENT_SOURCE_DIR} /cmake/modules" )
13
13
14
- # Make a job pool for things that can't yet be distributed
15
- cmake_host_system_information (
16
- RESULT localhost_logical_cores QUERY NUMBER_OF_LOGICAL_CORES )
17
- set_property (GLOBAL PROPERTY JOB_POOLS local_jobs=${localhost_logical_cores} )
18
- # Put linking in that category
19
- set_property (GLOBAL PROPERTY JOB_POOL_LINK local_jobs )
14
+ if (DEFINED CMAKE_JOB_POOLS )
15
+ # CMake < 3.11 doesn't support CMAKE_JOB_POOLS. Manually set the property.
16
+ set_property (GLOBAL PROPERTY JOB_POOLS "${CMAKE_JOB_POOLS} " )
17
+ else ()
18
+ # Make a job pool for things that can't yet be distributed
19
+ cmake_host_system_information (
20
+ RESULT localhost_logical_cores QUERY NUMBER_OF_LOGICAL_CORES )
21
+ set_property (GLOBAL PROPERTY JOB_POOLS local_jobs=${localhost_logical_cores} )
22
+ # Put linking in that category
23
+ set (CMAKE_JOB_POOL_LINK local_jobs )
24
+ endif ()
20
25
21
26
ENABLE_LANGUAGE (C )
22
27
You can’t perform that action at this time.
0 commit comments