Browse Source

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

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

+ 2
- 2
CMakeLists.txt View File

@@ -109,8 +109,8 @@ add_definitions(
109 109
 )
110 110
 
111 111
 set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
112
-set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
113
-set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
112
+set( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
113
+set( CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} -Wl,--no-undefined" )
114 114
 
115 115
 
116 116
 ##### tdegraphics directories ###################

Loading…
Cancel
Save