Explorar el Código

no MTlibs for udp server

Sten Grüner hace 9 años
padre
commit
c1b917c2ca
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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()