diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2016-03-26 13:01:21 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2016-03-29 12:15:21 +0100 |
commit | 50d5e20cd3a37f4871780aebf0129f1cd549b444 (patch) | |
tree | c596d648606a80b55e98202478e2245b19757249 /thirdparty | |
parent | 796d3bc14834465d3a8b324640c9f76966db96db (diff) |
cmake: Always build compression libraries with release flags.
We don't care about debugging them, and it can make a significant
performance difference.
Diffstat (limited to 'thirdparty')
-rw-r--r-- | thirdparty/brotli/CMakeLists.txt | 3 | ||||
-rw-r--r-- | thirdparty/snappy/CMakeLists.txt | 2 | ||||
-rw-r--r-- | thirdparty/zlib/CMakeLists.txt | 2 |
3 files changed, 5 insertions, 2 deletions
diff --git a/thirdparty/brotli/CMakeLists.txt b/thirdparty/brotli/CMakeLists.txt index f5133420..8ef1917b 100644 --- a/thirdparty/brotli/CMakeLists.txt +++ b/thirdparty/brotli/CMakeLists.txt @@ -1,5 +1,4 @@ -add_definitions ( -) +force_release_build () add_convenience_library (brotli_dec_bundled EXCLUDE_FROM_ALL diff --git a/thirdparty/snappy/CMakeLists.txt b/thirdparty/snappy/CMakeLists.txt index dbe8b706..88a0c461 100644 --- a/thirdparty/snappy/CMakeLists.txt +++ b/thirdparty/snappy/CMakeLists.txt @@ -1,3 +1,5 @@ +force_release_build () + add_definitions ( -DNDEBUG -DHAVE_CONFIG_H diff --git a/thirdparty/zlib/CMakeLists.txt b/thirdparty/zlib/CMakeLists.txt index c76f9e7a..a0a1ca07 100644 --- a/thirdparty/zlib/CMakeLists.txt +++ b/thirdparty/zlib/CMakeLists.txt @@ -1,3 +1,5 @@ +force_release_build () + include_directories (${CMAKE_CURRENT_SOURCE_DIR}) # adjust warnings |