瀏覽代碼

remove dependency on librt on windows

Julius Pfrommer 10 年之前
父節點
當前提交
5c2f32eb41
共有 1 個文件被更改,包括 4 次插入1 次删除
  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})