summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
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
commit994e3cd03f413a3258f35ba6541ef639aa10c9a0 (patch)
treedf0fe3cd7ae62ce38db426cb7e9c5f20eb3b4191 /CMakeLists.txt
parentbf596151166a06a6664cfa934e19da6d12f30495 (diff)
downloadtdeio-locate-994e3cd03f413a3258f35ba6541ef639aa10c9a0.tar.gz
tdeio-locate-994e3cd03f413a3258f35ba6541ef639aa10c9a0.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b257110..e315b3c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -61,8 +61,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" )
##### source directories ########################