diff options
author | Fabio Rossi <[email protected]> | 2018-12-17 17:07:38 +0100 |
---|---|---|
committer | Fabio Rossi <[email protected]> | 2018-12-17 17:07:38 +0100 |
commit | 84aad3784917007bd90a615a7077c70ea0895f71 (patch) | |
tree | a3b5ac5a440a90738aeb7e98f2e1936f0936a5b8 | |
parent | b31d5110e6d2a7fbdac0c89e0045dd19549d94e3 (diff) | |
download | tdegames-84aad3784917007bd90a615a7077c70ea0895f71.tar.gz tdegames-84aad3784917007bd90a615a7077c70ea0895f71.zip |
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <[email protected]>
-rw-r--r-- | CMakeLists.txt | 4 |
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() |