diff options
author | Brad King <brad.king@kitware.com> | 2016-07-13 19:06:23 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-07-14 19:47:32 (GMT) |
commit | 8a98cf643235a4d2869e1c876f8769b3e6bcd86f (patch) | |
tree | 7c324e9cb4cf3842163a544bd679b4e167dc4c83 /Modules/Platform/AIX-XL.cmake | |
parent | 37d15c399e33f3140c1ab0259984c54084dc34f8 (diff) | |
download | CMake-8a98cf643235a4d2869e1c876f8769b3e6bcd86f.zip CMake-8a98cf643235a4d2869e1c876f8769b3e6bcd86f.tar.gz CMake-8a98cf643235a4d2869e1c876f8769b3e6bcd86f.tar.bz2 |
Honor CMAKE_*_LINKER_FLAGS[_<CONFIG>]_INIT set in toolchain files
Document these variables.
Change our convention for setting these variables from:
set(CMAKE_EXE_LINKER_FLAGS_INIT "...")
to
string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " ...")
so that any value previously set by a toolchain file will be used.
Diffstat (limited to 'Modules/Platform/AIX-XL.cmake')
-rw-r--r-- | Modules/Platform/AIX-XL.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/Platform/AIX-XL.cmake b/Modules/Platform/AIX-XL.cmake index 5470441..3be095e 100644 --- a/Modules/Platform/AIX-XL.cmake +++ b/Modules/Platform/AIX-XL.cmake @@ -21,9 +21,9 @@ set(__AIX_COMPILER_XL 1) # # By default, runtime linking is enabled. All shared objects specified on the command line # will be listed, even if there are no symbols referenced, in the output file. -set(CMAKE_SHARED_LINKER_FLAGS_INIT "-Wl,-brtl") -set(CMAKE_MODULE_LINKER_FLAGS_INIT "-Wl,-brtl") -set(CMAKE_EXE_LINKER_FLAGS_INIT "-Wl,-brtl") +string(APPEND CMAKE_SHARED_LINKER_FLAGS_INIT " -Wl,-brtl") +string(APPEND CMAKE_MODULE_LINKER_FLAGS_INIT " -Wl,-brtl") +string(APPEND CMAKE_EXE_LINKER_FLAGS_INIT " -Wl,-brtl") macro(__aix_compiler_xl lang) |