From 87b2e7420acd84c8bd05903ff176bb3aae97c5c8 Mon Sep 17 00:00:00 2001 From: Fabio Rossi Date: Mon, 17 Dec 2018 17:07:37 +0100 Subject: [PATCH] Avoid overriding user linker flags (LDFLAGS) for modules and shared libs Signed-off-by: Fabio Rossi (cherry picked from commit 4d7c5973e8af3117e539535a9367bf8f7ebf8c92) --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be40fa2..71976ee 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -60,8 +60,8 @@ include( ConfigureChecks.cmake ) add_definitions( -DHAVE_CONFIG_H ) 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" ) ##### directories