Embarcadero: Fix bug where duplicate Ninja job pools would be created.
If the platform file was included multiple times, it was possible that duplicate Ninja job pools would be created.
This commit is contained in:
parent
4ffeab0e3c
commit
ddbda72288
|
@ -78,8 +78,12 @@ set (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT ${CMAKE_SHARED_LINKER_FLAGS_R
|
||||||
# invocations within a single working directory.
|
# invocations within a single working directory.
|
||||||
if(NOT DEFINED CMAKE_JOB_POOL_LINK)
|
if(NOT DEFINED CMAKE_JOB_POOL_LINK)
|
||||||
set(CMAKE_JOB_POOL_LINK BCC32LinkPool)
|
set(CMAKE_JOB_POOL_LINK BCC32LinkPool)
|
||||||
|
get_property(_bccjp GLOBAL PROPERTY JOB_POOLS)
|
||||||
|
if(NOT _bccjp MATCHES "BCC32LinkPool=")
|
||||||
set_property(GLOBAL APPEND PROPERTY JOB_POOLS BCC32LinkPool=1)
|
set_property(GLOBAL APPEND PROPERTY JOB_POOLS BCC32LinkPool=1)
|
||||||
endif()
|
endif()
|
||||||
|
unset(_bccjp)
|
||||||
|
endif()
|
||||||
|
|
||||||
macro(__embarcadero_language lang)
|
macro(__embarcadero_language lang)
|
||||||
set(CMAKE_${lang}_COMPILE_OPTIONS_DLL "${_tD}") # Note: This variable is a ';' separated list
|
set(CMAKE_${lang}_COMPILE_OPTIONS_DLL "${_tD}") # Note: This variable is a ';' separated list
|
||||||
|
|
Loading…
Reference in New Issue