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 5 months ago
parent
commit
83c0649181
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -80,8 +80,8 @@ add_definitions(
80 80
 )
81 81
 
82 82
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
83
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
84
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
83
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
84
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
85 85
 
86 86
 
87 87
 ##### source directories ########################

Loading…
Cancel
Save