summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFabio Rossi <rossi.f@inwind.it>2018-12-17 17:07:37 +0100
committerMichele Calgaro <michele.calgaro@yahoo.it>2018-12-18 23:45:55 +0900
commit5033aab1af6b146a85fc906f4c1263779555a687 (patch)
tree3eb9a1b102ac848b2ed5ba907570b0f068b0522e /CMakeLists.txt
parent15a0661d6f2aeadc11f6819ec1028cd3e0675079 (diff)
downloadabakus-5033aab1af6b146a85fc906f4c1263779555a687.tar.gz
abakus-5033aab1af6b146a85fc906f4c1263779555a687.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 be90ed2a42c4e5af07585b53151d444c11535b73)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80ccb6a..de0ef01 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -60,8 +60,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" )
##### source directories ########################