[crc32c] Clang-cl fix (#26253)

* [crc32c] fix clang-cl builds.

* v db
This commit is contained in:
Alexander Neumann 2022-08-10 20:24:20 +02:00 committed by GitHub
parent 8056e214c5
commit 63449f5c8d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,13 @@
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 84907285c..8c446b0c8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,7 +22,7 @@ if(NOT CMAKE_CXX_STANDARD)
endif(NOT CMAKE_CXX_STANDARD)
# https://github.com/izenecloud/cmake/blob/master/SetCompilerWarningAll.cmake
-if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC")
+if(MSVC)
# Use the highest warning level for Visual Studio.
set(CMAKE_CXX_WARNING_LEVEL 4)
if(CMAKE_CXX_FLAGS MATCHES "/W[0-4]")

View File

@ -6,6 +6,8 @@ vcpkg_from_github(
REF 1.1.2
SHA512 6325c52b5a6850b9f90086e0c0c86798c008af36e7cfd3a0216184a2d37b3bf7323481ddc6bfe4cbd5b31288b3ee6c69772d03085a13094cf95d00a9756a7196
HEAD_REF master
PATCHES
fix_clang-cl.patch
)
vcpkg_cmake_configure(

View File

@ -1,6 +1,7 @@
{
"name": "crc32c",
"version": "1.1.2",
"port-version": 1,
"description": "CRC32C implementation with support for CPU-specific acceleration instructions.",
"homepage": "https://github.com/google/crc32c",
"dependencies": [

View File

@ -1710,7 +1710,7 @@
},
"crc32c": {
"baseline": "1.1.2",
"port-version": 0
"port-version": 1
},
"crfsuite": {
"baseline": "2020-08-27",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "9704ed68003973bdffcd5224f720b97c424d1fa5",
"version": "1.1.2",
"port-version": 1
},
{
"git-tree": "dcfaa85ef9b67b94cf51378922832fff7cf43333",
"version": "1.1.2",