Julius Pfrommer пре 9 година
родитељ
комит
b15384d579
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      CMakeLists.txt

+ 3 - 1
CMakeLists.txt

@@ -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)