Browse Source

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

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

+ 2
- 2
CMakeLists.txt View File

@@ -54,8 +54,8 @@ add_definitions(
54 54
 )
55 55
 
56 56
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
57
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
58
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
57
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
58
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
59 59
 
60 60
 
61 61
 ##### source directories ########################

Loading…
Cancel
Save