diff options
author | Fabio Rossi <rossi.f@inwind.it> | 2018-12-17 17:07:38 +0100 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2018-12-18 21:55:09 +0900 |
commit | 3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63 (patch) | |
tree | f70d611d8ea5b1026627cc2d3b942fb330c8fdbd | |
parent | 9b9f3d672cc94891c0681bf0ad7af2dd4952ad2c (diff) | |
download | tdegames-3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63.tar.gz tdegames-3a5f149dbfd6c3bba9ad4c4c768c2fcfd0b78d63.zip |
Avoid overriding user linker flags (LDFLAGS) for modules and shared libs
Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
(cherry picked from commit 84aad3784917007bd90a615a7077c70ea0895f71)
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 509e1095..73851e72 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() |