소스 검색

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