Explorar o código

fix multithreaded build of the client

Julius Pfrommer %!s(int64=10) %!d(string=hai) anos
pai
achega
72970f0627
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      CMakeLists.txt

+ 4 - 0
CMakeLists.txt

@@ -180,6 +180,10 @@ if(CLIENT)
     # the client is built directly with the .o files as it currently uses
     # internal functions that are not exported to the shared lib.
 	add_executable(exampleClient $<TARGET_OBJECTS:open62541-objects> examples/opcuaClient.c)
+    if(MULTITHREADING)
+        find_package(LibUV REQUIRED)
+        target_link_libraries(exampleClient urcu-cds urcu uv)
+    endif()
 endif()
 
 # build example server