]> git.mxchange.org Git - flightgear.git/blobdiff - CMakeModules/FindSimGear.cmake
Simgear 'route' code is unused now.
[flightgear.git] / CMakeModules / FindSimGear.cmake
index 0be68ba0d0c6c7dd9e473078c94b8924d89d6179..580bb78f5a7341779f94afda3907271085cfea85 100644 (file)
@@ -152,7 +152,6 @@ else(SIMGEAR_SHARED)
         nasal
         tsync
         bucket
-        route
         io
         serial
         math
@@ -192,12 +191,13 @@ else(SIMGEAR_SHARED)
     
     set(SIMGEAR_CORE_LIBRARY_DEPENDENCIES
         ${CMAKE_THREAD_LIBS_INIT}
-        ${ZLIB_LIBRARY})
+        ${ZLIB_LIBRARY}
+        ${LIBSVN_LIBRARIES}
+        ${WINMM_LIBRARY})
 
     set(SIMGEAR_SCENE_LIBRARY_DEPENDENCIES 
         ${ALUT_LIBRARY} 
-       ${OPENAL_LIBRARY}
-       ${LIBSVN_LIBRARIES})
+        ${OPENAL_LIBRARY})
 
     if(WIN32)
         list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES ws2_32.lib)
@@ -205,13 +205,10 @@ else(SIMGEAR_SHARED)
 
     if(NOT MSVC)
         # basic timing routines on non windows systems, may be also cygwin?!
-        check_function_exists(clock_gettime clock_gettime_in_libc)
-        if(NOT clock_gettime_in_libc)
-            check_library_exists(rt clock_gettime "" have_rt)
-            if(have_rt)
-                list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES rt)
-            endif(have_rt)
-        endif(NOT clock_gettime_in_libc)
+        check_library_exists(rt clock_gettime "" have_rt)
+        if(have_rt)
+            list(APPEND SIMGEAR_CORE_LIBRARY_DEPENDENCIES rt)
+        endif(have_rt)
     endif(NOT MSVC)
 endif(SIMGEAR_SHARED)