|
@@ -217,9 +217,11 @@ if(EXTENSION_UDP)
|
|
|
list(APPEND server_sources examples/networklayer_udp.c)
|
|
|
endif()
|
|
|
add_executable(exampleServer ${server_sources} ${exported_headers} ${generated_headers})
|
|
|
-target_link_libraries(exampleServer open62541 rt)
|
|
|
+target_link_libraries(exampleServer open62541)
|
|
|
if(WIN32)
|
|
|
target_link_libraries(exampleServer ws2_32)
|
|
|
+else()
|
|
|
+ target_link_libraries(exampleServer rt)
|
|
|
endif(WIN32)
|
|
|
if(MULTITHREADING)
|
|
|
target_link_libraries(exampleServer urcu-cds urcu urcu-common pthread)
|