X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=thirdparty%2Fsnappy%2FCMakeLists.txt;h=25281a6b981cbadb818dced2f75dec654582c011;hb=8fae49d8ccee46f43bb06f035dd5b3ea105ba3aa;hp=92d12482ef08a7f02874b11a1e5a063ab1b94b43;hpb=1035b94bc86d70dc0f6af1adcf7f20fd5d2bdca3;p=apitrace diff --git a/thirdparty/snappy/CMakeLists.txt b/thirdparty/snappy/CMakeLists.txt index 92d1248..25281a6 100644 --- a/thirdparty/snappy/CMakeLists.txt +++ b/thirdparty/snappy/CMakeLists.txt @@ -1,6 +1,14 @@ -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) +add_definitions ( + -DNDEBUG + -DHAVE_CONFIG_H +) + +# Adjust warnings +if (CMAKE_COMPILER_IS_GNUCXX) + add_definitions (-Wno-unused-function) +endif () -add_library (snappy_bundled STATIC +add_library (snappy_bundled STATIC EXCLUDE_FROM_ALL snappy.cc snappy-sinksource.cc snappy-stubs-internal.cc @@ -10,3 +18,9 @@ add_library (snappy_bundled STATIC set_target_properties (snappy_bundled PROPERTIES COMPILE_FLAGS "${CMAKE_SHARED_LIBRARY_CXX_FLAGS}" ) + +install ( + FILES COPYING + DESTINATION ${DOC_INSTALL_DIR} + RENAME LICENSE-snappy.txt +)