Przeglądaj źródła

fix multithreaded build of the client

Julius Pfrommer 10 lat temu
rodzic
commit
72970f0627
1 zmienionych plików z 4 dodań i 0 usunięć
  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