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:20:21 +0900 |
commit | 106e19229e2bba6222753d48b32da57d77a00a15 (patch) | |
tree | 11dada73dd370918e88cff9ab8b1b79fda5cb82b | |
parent | 48fe3cf3c8d7c622f13e231cc11386046141a342 (diff) | |
download | tdevelop-106e19229e2bba6222753d48b32da57d77a00a15.tar.gz tdevelop-106e19229e2bba6222753d48b32da57d77a00a15.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 09deb6aa1a5a78793aa7abe8848df6056560fae1)
-rw-r--r-- | CMakeLists.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 621eeed9..7085a0d5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -154,8 +154,8 @@ if( NOT WITH_DEPRECATION ) endif( ) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) -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" ) ##### install data ############################## |