Explorar el Código

fixing mingw complile

Stasik0 hace 10 años
padre
commit
ee45828832
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -89,6 +89,7 @@ add_library(open62541 SHARED $<TARGET_OBJECTS:open62541-objects>)
 add_library(open62541-static STATIC $<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
 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)
 target_compile_definitions(open62541-objects PUBLIC UA_DYNAMIC_LINKING)
+target_compile_definitions(open62541-static PUBLIC UA_DYNAMIC_LINKING)
 
 
 ## logging
 ## logging
 set(UA_LOGLEVEL 400 CACHE STRING "Level at which logs shall be reported")
 set(UA_LOGLEVEL 400 CACHE STRING "Level at which logs shall be reported")