From a06151a14fabdd80577e0cb77d90fb6fdee1ca9a Mon Sep 17 00:00:00 2001 From: Fabio Rossi Date: Mon, 17 Dec 2018 17:07:38 +0100 Subject: Avoid overriding user linker flags (LDFLAGS) for modules and shared libs Signed-off-by: Fabio Rossi (cherry picked from commit 93e096976beab7a5c831f06c22fddaaf8aa986a1) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 29c869e..90a841b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,7 +58,7 @@ install( FILES ${CMAKE_CURRENT_BINARY_DIR}/dbus-1-tqt.pc DESTINATION ${PKGCONFIG ##### build setup ############################### set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -include tqt.h" ) -set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" ) +set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" ) add_definitions( -DDBUS_COMPILATION -- cgit v1.2.1