Przeglądaj źródła

no MTlibs for udp server

Sten Grüner 9 lat temu
rodzic
commit
c1b917c2ca
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -249,7 +249,9 @@ if(EXTENSION_UDP)
 	message(STATUS "Extensions: enabling udp")
 	add_definitions(-DEXTENSION_UDP)
 	add_executable(exampleServerUDP $<TARGET_OBJECTS:open62541-object> examples/networklayer_udp.c examples/server_udp.c)
-  target_link_libraries(exampleServerUDP urcu-cds urcu urcu-common)
+  if(ENABLE_MULTITHREADING)
+  	target_link_libraries(exampleServerUDP urcu-cds urcu urcu-common)
+  endif()
   if (NOT APPLE)
       target_link_libraries(exampleServerUDP rt)
   endif()