]> git.cworth.org Git - apitrace/blobdiff - CMakeLists.txt
Define _GNU_SOURCE for the whole tree.
[apitrace] / CMakeLists.txt
index 91643c2f107fe98952f930ac6777f41f57cfdeee..2bfa07ef24d2d882dd538baa1eaa209fd7b23c48 100644 (file)
@@ -174,6 +174,11 @@ if (MINGW)
     endif ()
 endif ()
 
+if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
+    # For RTLD_DEFAULT and RTLD_NEXT
+    add_definitions (-D_GNU_SOURCE)
+endif ()
+
 
 # Put all executables into the same top level build directory, regardless of
 # which subdirectory they are declared