Sfoglia il codice sorgente

remove dependency on librt on windows

Julius Pfrommer 10 anni fa
parent
commit
5c2f32eb41
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 4 1
      tests/CMakeLists.txt

+ 4 - 1
tests/CMakeLists.txt

@@ -1,7 +1,10 @@
 find_package(Check REQUIRED)
 find_package(Threads REQUIRED)
 
-set(LIBS open62541 ${CHECK_LIBRARIES} m rt pthread)
+set(LIBS open62541 ${CHECK_LIBRARIES} m)
+if(NOT WIN32)
+    list(APPEND LIBS rt pthread)
+endif(NOT WIN32)
 
 add_executable(check_builtin check_builtin.c)
 target_link_libraries(check_builtin ${LIBS})