Browse Source

Avoid overriding user linker flags (LDFLAGS) for modules and shared libs

Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
pull/1/head
Fabio Rossi 6 months ago
parent
commit
11aab8f561
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -89,8 +89,8 @@ add_definitions(
89 89
 )
90 90
 
91 91
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
92
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
93
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
92
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
93
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
94 94
 
95 95
 
96 96
 ##### tellico directories #######################

Loading…
Cancel
Save