diff options
author | Brad King <brad.king@kitware.com> | 2016-07-13 19:01:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-13 19:01:26 (GMT) |
commit | 55c884ed3bf29069f3b74db7a0ba54ed62edb88f (patch) | |
tree | c10b2da64c3de3a6a3716254fea285fd4bcf9133 | |
parent | aec3c79acbe86a2156e3929678ef05bc2840edfa (diff) | |
download | CMake-55c884ed3bf29069f3b74db7a0ba54ed62edb88f.zip CMake-55c884ed3bf29069f3b74db7a0ba54ed62edb88f.tar.gz CMake-55c884ed3bf29069f3b74db7a0ba54ed62edb88f.tar.bz2 |
Embarcadero: Set all CMAKE_*_LINKER_FLAGS_INIT directly
Avoid copying CMAKE_EXE_LINKER_FLAGS_INIT to the others.
-rw-r--r-- | Modules/Platform/Windows-Embarcadero.cmake | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Modules/Platform/Windows-Embarcadero.cmake b/Modules/Platform/Windows-Embarcadero.cmake index 8a87db3..79b0af5 100644 --- a/Modules/Platform/Windows-Embarcadero.cmake +++ b/Modules/Platform/Windows-Embarcadero.cmake @@ -64,15 +64,11 @@ set(CMAKE_CREATE_CONSOLE_EXE "${_tC}" ) set (CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build, options are: Debug Release RelWithDebInfo MinSizeRel.") -set (CMAKE_EXE_LINKER_FLAGS_INIT "${_tM} -lS:1048576 -lSc:4098 -lH:1048576 -lHc:8192 ") -set (CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT "-v") -set (CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT "-v") -set (CMAKE_SHARED_LINKER_FLAGS_INIT ${CMAKE_EXE_LINKER_FLAGS_INIT}) -set (CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT ${CMAKE_EXE_LINKER_FLAGS_DEBUG_INIT}) -set (CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT ${CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO_INIT}) -set (CMAKE_MODULE_LINKER_FLAGS_INIT ${CMAKE_SHARED_LINKER_FLAGS_INIT}) -set (CMAKE_MODULE_LINKER_FLAGS_DEBUG_INIT ${CMAKE_SHARED_LINKER_FLAGS_DEBUG_INIT}) -set (CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO_INIT ${CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO_INIT}) +foreach(t EXE SHARED MODULE) + set(CMAKE_${t}_LINKER_FLAGS_INIT "${_tM} -lS:1048576 -lSc:4098 -lH:1048576 -lHc:8192 ") + set(CMAKE_${t}_LINKER_FLAGS_DEBUG_INIT "-v") + set(CMAKE_${t}_LINKER_FLAGS_RELWITHDEBINFO_INIT "-v") +endforeach() # The Borland link tool does not support multiple concurrent # invocations within a single working directory. |