Browse Source

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

Signed-off-by: Fabio Rossi <rossi.f@inwind.it>
Fabio Rossi 2 months ago
parent
commit
3cad9663df
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -209,8 +209,8 @@ add_definitions(
209 209
 )
210 210
 
211 211
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
212
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
213
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
212
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
213
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
214 214
 
215 215
 check_type_size( "long long" LONG_LONG )
216 216
 

Loading…
Cancel
Save