Merge pull request #4951 from coryan/upgrade-crc32c-to-1.0.6

[crc32c] Upgrade crc32c to 1.0.6.
This commit is contained in:
Phil Christensen 2018-12-18 16:04:02 -08:00 committed by GitHub
commit bdafba739f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 5 deletions

View File

@ -0,0 +1,15 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 80b7d17..6ab78e2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,6 +15,10 @@ set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF)
+# When compiling a Windows DLL export all symbols, just like Unix shared
+# objects do.
+set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
+
# https://github.com/izenecloud/cmake/blob/master/SetCompilerWarningAll.cmake
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
# Use the highest warning level for Visual Studio.

View File

@ -1,3 +1,3 @@
Source: crc32c
Version: 1.0.5-1
Version: 1.0.6-1
Description: CRC32C implementation with support for CPU-specific acceleration instructions.

View File

@ -1,13 +1,12 @@
include(vcpkg_common_functions)
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/crc32c
REF 12a65bfb328fefae5c05879132676f702a3f68e8
SHA512 610b7c54b0247edd2d37ec18db68c1f8a55b60b2fd3ddcede41e6321eb45d040f513cece493cbdc67e881065a643c4972126864811ff08b24aa7e82642e54f56
REF 1.0.6
SHA512 c30f6510d6348f15dcdddc06e375f21a69681cd615483d67628b32de747e5e98200fa49faf7e3fc30a1302991fd1f9c9a706c9eb4e13c9c6c09e74066474ea7b
HEAD_REF master
PATCHES ${CMAKE_CURRENT_LIST_DIR}/0001_export_symbols.patch
)
vcpkg_configure_cmake(