]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/CMakeLists.txt
ITM radio calculations are only considered valid
[flightgear.git] / src / Main / CMakeLists.txt
index 6a4df8c8960e4589b3b3d44c46c780f84eb79fed..f96ca1e07e12bc7ef2eac062476d83ba36ac5c04 100644 (file)
@@ -85,7 +85,11 @@ target_link_libraries(fgfs
 
 install(TARGETS fgfs RUNTIME DESTINATION bin)
 
+check_library_exists(rt clock_gettime "" HAVE_CLOCK_GETTIME)
 add_executable(metar metar_main.cxx)
+if(HAVE_CLOCK_GETTIME)
+        target_link_libraries(metar rt)
+endif(HAVE_CLOCK_GETTIME)
 target_link_libraries(metar
        ${SIMGEAR_LIBRARIES}
        ${SIMGEAR_CORE_LIBRARY_DEPENDENCIES}