]> git.cworth.org Git - apitrace/blobdiff - thirdparty/snappy/CMakeLists.txt
Universal config.h for snappy.
[apitrace] / thirdparty / snappy / CMakeLists.txt
index 92d12482ef08a7f02874b11a1e5a063ab1b94b43..87873d9f593b2ea0fcd4d44a24fc61f81fa25eae 100644 (file)
@@ -1,4 +1,9 @@
-include_directories(${CMAKE_CURRENT_SOURCE_DIR})
+add_definitions (-DHAVE_CONFIG_H)
+
+# Adjust warnings
+if (CMAKE_COMPILER_IS_GNUCXX)
+    add_definitions (-Wno-unused-function)
+endif ()
 
 add_library (snappy_bundled STATIC
     snappy.cc