]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Make os::getTime() inline and make time frequency OS-dependent variable.
[apitrace] / CMakeLists.txt
index 3fa8e454d2276d142005813308a02c9e942f9158..24e2afc06bcdeb5e52a6e8ccb7ce9f3e1a2851de 100755 (executable)
@@ -573,6 +573,11 @@ if (WIN32 OR APPLE OR X11_FOUND)
             pthread
             dl
         )
+
+        if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+            target_link_libraries (glretrace rt)
+        endif ()
+
     endif ()
 
     install (TARGETS glretrace RUNTIME DESTINATION bin) 
@@ -601,6 +606,10 @@ if (EGL_FOUND AND X11_FOUND AND NOT WIN32 AND NOT APPLE)
         dl
     )
 
+    if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+        target_link_libraries (eglretrace rt)
+    endif ()
+
     install (TARGETS eglretrace RUNTIME DESTINATION bin) 
 endif ()