diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2021-04-20 08:30:03 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-19 17:30:03 -0700 |
| commit | 25adbcfe419adab60188d09d9ead24148a8a8199 (patch) | |
| tree | 1350375021677d233b42b38706720cd3693aa957 | |
| parent | 631177d3f4ce35d8ab10c07bfbd5368faf510df9 (diff) | |
| download | vcpkg-25adbcfe419adab60188d09d9ead24148a8a8199.tar.gz vcpkg-25adbcfe419adab60188d09d9ead24148a8a8199.zip | |
[corrade] Fix VS2019 build error (#17356)
* [corrade] Fix VS2019 build error
* Update versions
| -rw-r--r-- | ports/corrade/CONTROL | 20 | ||||
| -rw-r--r-- | ports/corrade/fix-vs2019.patch | 13 | ||||
| -rw-r--r-- | ports/corrade/portfile.cmake | 1 | ||||
| -rw-r--r-- | ports/corrade/vcpkg.json | 51 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/c-/corrade.json | 5 |
6 files changed, 71 insertions, 21 deletions
diff --git a/ports/corrade/CONTROL b/ports/corrade/CONTROL deleted file mode 100644 index d59fa6f0a..000000000 --- a/ports/corrade/CONTROL +++ /dev/null @@ -1,20 +0,0 @@ -Source: corrade -Version: 2020.06 -Description: C++11/C++14 multiplatform utility library -Homepage: https://magnum.graphics/corrade/ -Default-Features: interconnect, pluginmanager, testsuite, utility - -Feature: interconnect -Description: Interconnect library -Build-Depends: corrade[utility] - -Feature: pluginmanager -Description: PluginManager library -Build-Depends: corrade[utility] - -Feature: testsuite -Description: TestSuite library -Build-Depends: corrade[utility] - -Feature: utility -Description: Utility library diff --git a/ports/corrade/fix-vs2019.patch b/ports/corrade/fix-vs2019.patch new file mode 100644 index 000000000..abf9a3a6e --- /dev/null +++ b/ports/corrade/fix-vs2019.patch @@ -0,0 +1,13 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e0cc288..e5a4648 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -195,7 +195,7 @@ elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") + set(MSVC2017_COMPATIBILITY ON) + message(WARNING "MSVC 2017 detected, automatically enabling MSVC2017_COMPATIBILITY. Note that some features may not be available with this compiler.") + endif() +- elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.30") ++ elseif(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "19.31") + if(NOT MSVC2019_COMPATIBILITY) + set(MSVC2019_COMPATIBILITY ON) + message(WARNING "MSVC 2019 detected, automatically enabling MSVC2019_COMPATIBILITY. Note that some features may not be available with this compiler.") diff --git a/ports/corrade/portfile.cmake b/ports/corrade/portfile.cmake index 8ba526b41..06615bf11 100644 --- a/ports/corrade/portfile.cmake +++ b/ports/corrade/portfile.cmake @@ -4,6 +4,7 @@ vcpkg_from_github( REF v2020.06 SHA512 94cc8959b0ee43ecd8d13a25307e7829d53dc6601628d97c32288d1704e2c0835b755bffc06b2105e6aa5a612f119a60e83cb475860b51e6a35999215c100227 HEAD_REF master + PATCHES fix-vs2019.patch ) string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" BUILD_STATIC) diff --git a/ports/corrade/vcpkg.json b/ports/corrade/vcpkg.json new file mode 100644 index 000000000..3f738261d --- /dev/null +++ b/ports/corrade/vcpkg.json @@ -0,0 +1,51 @@ +{ + "name": "corrade", + "version-string": "2020.06", + "port-version": 1, + "description": "C++11/C++14 multiplatform utility library.", + "homepage": "https://magnum.graphics/corrade/", + "default-features": [ + "interconnect", + "pluginmanager", + "testsuite", + "utility" + ], + "features": { + "interconnect": { + "description": "Interconnect library", + "dependencies": [ + { + "name": "corrade", + "features": [ + "utility" + ] + } + ] + }, + "pluginmanager": { + "description": "PluginManager library", + "dependencies": [ + { + "name": "corrade", + "features": [ + "utility" + ] + } + ] + }, + "testsuite": { + "description": "TestSuite library", + "dependencies": [ + { + "name": "corrade", + "features": [ + "utility" + ] + } + ] + }, + "utility": { + "description": "Utility library" + } + } +} diff --git a/versions/baseline.json b/versions/baseline.json index b9be6ee1f..80ebac6e6 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1358,7 +1358,7 @@ }, "corrade": { "baseline": "2020.06", - "port-version": 0 + "port-version": 1 }, "cpp-base64": { "baseline": "2019-06-19", diff --git a/versions/c-/corrade.json b/versions/c-/corrade.json index 9b5589672..e0f2e29f7 100644 --- a/versions/c-/corrade.json +++ b/versions/c-/corrade.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "12cd1f62edbe4e05de794c862facfdfd0fe8171d", + "version-string": "2020.06", + "port-version": 1 + }, + { "git-tree": "f96e0a1ac4f3b72bedf9f1bf099bb91cceba0456", "version-string": "2020.06", "port-version": 0 |
