diff options
author | Brad King <brad.king@kitware.com> | 2019-07-12 12:52:41 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-15 11:45:04 (GMT) |
commit | 9cb5f040d7bd2a73d6510f2de38ddf03e4e7498a (patch) | |
tree | 8539ed33c054a729db39a31598b16b376f09970b /Modules/Compiler | |
parent | d7e53b427428bc23778d1b094e8893df4573e22e (diff) | |
download | CMake-9cb5f040d7bd2a73d6510f2de38ddf03e4e7498a.zip CMake-9cb5f040d7bd2a73d6510f2de38ddf03e4e7498a.tar.gz CMake-9cb5f040d7bd2a73d6510f2de38ddf03e4e7498a.tar.bz2 |
XL: De-duplicate shared object creation flags
The XL `-qmkshrobj` flag creates shared objects on all platforms.
Move the flag out of the per-platform modules into the per-compiler
module for XL.
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/XL.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/Compiler/XL.cmake b/Modules/Compiler/XL.cmake index a9cec11..fc71ab4 100644 --- a/Modules/Compiler/XL.cmake +++ b/Modules/Compiler/XL.cmake @@ -18,6 +18,8 @@ macro(__compiler_xl lang) set(CMAKE_${lang}_RESPONSE_FILE_FLAG "-qoptfile=") set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "-qoptfile=") + set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-qmkshrobj") + set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,") set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",") |