Преглед на файлове

fix multithreaded build of the client

Julius Pfrommer преди 10 години
родител
ревизия
72970f0627
променени са 1 файла, в които са добавени 4 реда и са изтрити 0 реда
  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