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 /ports | |
| parent | 631177d3f4ce35d8ab10c07bfbd5368faf510df9 (diff) | |
| download | vcpkg-25adbcfe419adab60188d09d9ead24148a8a8199.tar.gz vcpkg-25adbcfe419adab60188d09d9ead24148a8a8199.zip | |
[corrade] Fix VS2019 build error (#17356)
* [corrade] Fix VS2019 build error
* Update versions
Diffstat (limited to 'ports')
| -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 |
4 files changed, 65 insertions, 20 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" + } + } +} |
