Commit ddbda722 authored by James Johnston's avatar James Johnston

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.
parent 4ffeab0e
......@@ -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)
......
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