summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFabio Rossi <[email protected]>2018-12-17 17:07:38 +0100
committerFabio Rossi <[email protected]>2018-12-17 17:07:38 +0100
commit84aad3784917007bd90a615a7077c70ea0895f71 (patch)
treea3b5ac5a440a90738aeb7e98f2e1936f0936a5b8 /CMakeLists.txt
parentb31d5110e6d2a7fbdac0c89e0045dd19549d94e3 (diff)
downloadtdegames-84aad3784917007bd90a615a7077c70ea0895f71.tar.gz
tdegames-84aad3784917007bd90a615a7077c70ea0895f71.zip
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]>
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 d7c4039d..5c5fde22 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -103,8 +103,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" )
if( WITH_TEST )
enable_testing()