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
commit40e8647c13cfed704fb761d75a6e27fee657ee7f (patch)
treeb73eb59eddb1dd72520899d6fa3681b0d85d65b0
parent718c7f4bde55b9148124209a863c4bceb8c8ffae (diff)
downloadtdesdk-40e8647c13cfed704fb761d75a6e27fee657ee7f.tar.gz
tdesdk-40e8647c13cfed704fb761d75a6e27fee657ee7f.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 b5205b3..b831bcc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -85,8 +85,8 @@ add_definitions(
)
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
-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" )
##### tdesdk directories ########################