mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[crossguid] fix mac build (#22587)
This commit is contained in:
parent
6bb5aa3b97
commit
f56752f4a8
@ -6,6 +6,8 @@ vcpkg_from_github(
|
||||
REF ca1bf4b810e2d188d04cb6286f957008ee1b7681 #2021-10-22
|
||||
SHA512 f0a80d8e99b10473bcfdfde3d1c5fd7b766959819f0d1c0595ac84ce46db9007a5fbfde9a55aca60530c46cb7f8ef4c7e472c6191559ded92f868589c141ccaf
|
||||
HEAD_REF master
|
||||
PATCHES
|
||||
warnings.patch
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
|
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "crossguid",
|
||||
"version-date": "2021-10-22",
|
||||
"port-version": 1,
|
||||
"port-version": 2,
|
||||
"description": "CrossGuid is a minimal, cross platform, C++ GUID library.",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "libuuid",
|
||||
"platform": "!windows & !uwp & !osx & !android"
|
||||
"platform": "!windows & !osx & !android"
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
|
20
ports/crossguid/warnings.patch
Normal file
20
ports/crossguid/warnings.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
||||
index 76b5a62..174d981 100644
|
||||
--- a/CMakeLists.txt
|
||||
+++ b/CMakeLists.txt
|
||||
@@ -40,15 +40,6 @@ else()
|
||||
target_compile_definitions(crossguid PRIVATE GUID_LIBUUID)
|
||||
endif()
|
||||
|
||||
-if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
- set(WARNINGS "-Werror" "-Wall")
|
||||
-elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
|
||||
- set(WARNINGS "-Werror" "-Wall")
|
||||
-elseif(MSVC)
|
||||
- set(WARNINGS "/WX" "/W4")
|
||||
-endif()
|
||||
-target_compile_options(crossguid PRIVATE ${WARNINGS})
|
||||
-
|
||||
set_target_properties(crossguid
|
||||
PROPERTIES
|
||||
VERSION ${PROJECT_VERSION}
|
@ -176,7 +176,6 @@ crashpad:arm-uwp=fail
|
||||
crashpad:x64-linux=fail
|
||||
crashpad:x64-uwp=fail
|
||||
crashpad:x86-windows=fail
|
||||
crossguid:x64-osx=fail
|
||||
ctemplate:arm64-windows=fail
|
||||
ctemplate:arm-uwp=fail
|
||||
ctemplate:x64-linux=fail
|
||||
|
@ -1654,7 +1654,7 @@
|
||||
},
|
||||
"crossguid": {
|
||||
"baseline": "2021-10-22",
|
||||
"port-version": 1
|
||||
"port-version": 2
|
||||
},
|
||||
"crow": {
|
||||
"baseline": "0.3.4",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "93714099ddf83b2f3437a080c8acc08ff74cbe37",
|
||||
"version-date": "2021-10-22",
|
||||
"port-version": 2
|
||||
},
|
||||
{
|
||||
"git-tree": "4e53633ff35a2bcfb9076aee3e0d740406e788d3",
|
||||
"version-date": "2021-10-22",
|
||||
|
Loading…
x
Reference in New Issue
Block a user