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:
James Johnston 2015-12-03 19:10:19 +00:00
parent 4ffeab0e3c
commit ddbda72288
1 changed files with 5 additions and 1 deletions

View File

@ -78,7 +78,11 @@ set (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT ${CMAKE_SHARED_LINKER_FLAGS_R
# invocations within a single working directory.
if(NOT DEFINED CMAKE_JOB_POOL_LINK)
set(CMAKE_JOB_POOL_LINK BCC32LinkPool)
set_property(GLOBAL APPEND PROPERTY JOB_POOLS BCC32LinkPool=1)
get_property(_bccjp GLOBAL PROPERTY JOB_POOLS)
if(NOT _bccjp MATCHES "BCC32LinkPool=")
set_property(GLOBAL APPEND PROPERTY JOB_POOLS BCC32LinkPool=1)
endif()
unset(_bccjp)
endif()
macro(__embarcadero_language lang)