summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:38 +0100
committerFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:38 +0100
commit09deb6aa1a5a78793aa7abe8848df6056560fae1 (patch)
tree7a4ecbb68f7f3354ec2fd762644170d872c115d6
parentec581c9fe909cbcc0162429bf171f693cd9c0941 (diff)
downloadtdevelop-09deb6aa1a5a78793aa7abe8848df6056560fae1.tar.gz
tdevelop-09deb6aa1a5a78793aa7abe8848df6056560fae1.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 718f1a78..2828f057 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -154,8 +154,8 @@ if( NOT WITH_DEPRECATION )
endif( )
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" )
##### install data ##############################