Stasik0 9 lat temu
rodzic
commit
9112572e72
1 zmienionych plików z 4 dodań i 3 usunięć
  1. 4 3
      ports/WAGO-750-860.patch

+ 4 - 3
ports/WAGO-750-860.patch

@@ -36,14 +36,15 @@ index c785182..9e66da0 100644
  	endif()
  endif()
  
-@@ -150,8 +147,8 @@ else()
+@@ -149,10 +149,7 @@ else()
  endif()
  
- add_library(open62541-objects OBJECT ${lib_sources}) # static version that exports all symbols
+ add_library(open62541-objects OBJECT ${lib_sources}) 
 -add_library(open62541 SHARED $<TARGET_OBJECTS:open62541-objects>)
+-add_library(open62541-static STATIC $<TARGET_OBJECTS:open62541-objects>)
+-SET_TARGET_PROPERTIES(open62541-static PROPERTIES OUTPUT_NAME open62541 CLEAN_DIRECT_OUTPUT 1) # static version that exports all symbols
 -target_compile_definitions(open62541-objects PUBLIC UA_DYNAMIC_LINKING)
 +add_library(open62541 $<TARGET_OBJECTS:open62541-objects>)
-+#target_compile_definitions(open62541-objects PUBLIC UA_DYNAMIC_LINKING)
  
  ## logging
  set(UA_LOGLEVEL 400 CACHE STRING "Level at which logs shall be reported")