diff options
author | Fabio Rossi <rossi.f@inwind.it> | 2018-12-17 17:07:38 +0100 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-12-18 21:16:06 +0900 |
commit | 823357ed21d675a58576601ef3ad3d7a11d49eb5 (patch) | |
tree | 1dc77ec996a1ddd14878a58941d9ca6e4f92b92e | |
parent | ee2a7196efaf3d95bec93d86dd2ffc4610a9b6a1 (diff) | |
download | tdewebdev-823357ed21d675a58576601ef3ad3d7a11d49eb5.tar.gz tdewebdev-823357ed21d675a58576601ef3ad3d7a11d49eb5.zip |
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
(cherry picked from commit 4e9b26062601e24c439ec4ed12e2326dfa13f78a)
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 3b16696a..c784db02 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -68,8 +68,8 @@ add_definitions( ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) -set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) -set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" ) +set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) +set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" ) ##### source directories ######################## |