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
542631979a
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      CMakeLists.txt

+ 2
- 2
CMakeLists.txt View File

@@ -61,8 +61,8 @@ include( ConfigureChecks.cmake )
61 61
 add_definitions( -DHAVE_CONFIG_H  )
62 62
 
63 63
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
64
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
65
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
64
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
65
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
66 66
 
67 67
 
68 68
 ##### directories

Loading…
Cancel
Save