Browse Source

remove dependency on librt on windows

Julius Pfrommer 10 years ago
parent
commit
5c2f32eb41
1 changed files with 4 additions and 1 deletions
  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})