forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[snappy] Update to 1.1.10 and disable optimizations based on hardware…
… support (microsoft#26828)
- Loading branch information
Showing
6 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/CMakeLists.txt | ||
+++ b/CMakeLists.txt | ||
@@ -68,7 +68,7 @@ | ||
|
||
# Use -Werror for clang only. | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") | ||
- if(NOT CMAKE_CXX_FLAGS MATCHES "-Werror") | ||
+ if(0) | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror") | ||
endif(NOT CMAKE_CXX_FLAGS MATCHES "-Werror") | ||
endif(CMAKE_CXX_COMPILER_ID MATCHES "Clang") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
snappy provides CMake targets: | ||
|
||
find_package(Snappy CONFIG REQUIRED) | ||
target_link_libraries(main PRIVATE Snappy::snappy) | ||
|
||
Optimizations based on hardware support are disabled by default. | ||
You can enable them by adding corresponding flags to VCPKG_CMAKE_CONFIGURE_OPTIONS inside a custom triplet file, for example: | ||
|
||
if("${PORT}" STREQUAL "snappy") | ||
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS -DSNAPPY_HAVE_SSSE3=ON -DSNAPPY_HAVE_BMI2=ON) | ||
endif() | ||
|
||
For a full list of possible options, see project's root CMakeLists.txt. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters