]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Cleanup README formatting.
[apitrace] / CMakeLists.txt
index 3b932e1459cc3aa41300e849b1e335af83a38d09..9394282c591062bdc931a054a3c01b6a4d3941d4 100644 (file)
@@ -194,6 +194,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
     CHECK_INCLUDE_FILES(proc/readproc.h READPROC_H_FOUND)
     if (READPROC_H_FOUND)
         add_definitions (-DHAVE_READPROC_H)
+        find_library (proc_LIBRARY NAMES proc procps)
     endif ()
 endif()
 
@@ -316,7 +317,6 @@ add_library (common STATIC
 )
 
 set_target_properties (common PROPERTIES
-    COMPILE_DEFINITIONS APITRACE_SOURCE_DIR="${CMAKE_SOURCE_DIR}"
     # Ensure it can be statically linked in shared libraries
     COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}"
 )