diff options
| author | NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> | 2021-10-12 11:43:05 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-11 20:43:05 -0700 |
| commit | 9deacd9e5b92fa94b2dd1e33b2a2dac1a01b8b64 (patch) | |
| tree | c2dda602b5e0588be51901674d1bddb0f7b6d264 | |
| parent | 143cfa363c07ead50b06a5ddc66b81b26b0eecd4 (diff) | |
| download | vcpkg-9deacd9e5b92fa94b2dd1e33b2a2dac1a01b8b64.tar.gz vcpkg-9deacd9e5b92fa94b2dd1e33b2a2dac1a01b8b64.zip | |
[corrade] Fix build error on vs2019 (#20655)
| -rw-r--r-- | ports/corrade/fix-vs2019.patch | 2 | ||||
| -rw-r--r-- | ports/corrade/portfile.cmake | 22 | ||||
| -rw-r--r-- | ports/corrade/vcpkg.json | 2 | ||||
| -rw-r--r-- | versions/baseline.json | 2 | ||||
| -rw-r--r-- | versions/c-/corrade.json | 5 |
5 files changed, 19 insertions, 14 deletions
diff --git a/ports/corrade/fix-vs2019.patch b/ports/corrade/fix-vs2019.patch index abf9a3a6e..b7e659913 100644 --- a/ports/corrade/fix-vs2019.patch +++ b/ports/corrade/fix-vs2019.patch @@ -7,7 +7,7 @@ index e0cc288..e5a4648 100644 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") ++ elseif(CMAKE_CXX_COMPILER_VERSION GREATER "19.20") 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 187374a6d..2d6b4920d 100644 --- a/ports/corrade/portfile.cmake +++ b/ports/corrade/portfile.cmake @@ -25,7 +25,7 @@ endforeach() vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS FEATURES ${_COMPONENTS}) vcpkg_configure_cmake( - SOURCE_PATH ${SOURCE_PATH} + SOURCE_PATH "${SOURCE_PATH}" PREFER_NINJA # Disable this option if project cannot be built with Ninja OPTIONS ${FEATURE_OPTIONS} @@ -36,8 +36,8 @@ vcpkg_configure_cmake( vcpkg_install_cmake() # Debug includes and share are the same as release -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) -file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share) +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include") +file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share") # Install tools if("utility" IN_LIST FEATURES) @@ -49,22 +49,22 @@ endif() if(NOT FEATURES) # No features, no binaries (only Corrade.h). file(REMOVE_RECURSE - ${CURRENT_PACKAGES_DIR}/bin - ${CURRENT_PACKAGES_DIR}/lib - ${CURRENT_PACKAGES_DIR}/debug) + "${CURRENT_PACKAGES_DIR}/bin" + "${CURRENT_PACKAGES_DIR}/lib" + "${CURRENT_PACKAGES_DIR}/debug") # debug is completely empty, as include and share # have already been removed. elseif(VCPKG_LIBRARY_LINKAGE STREQUAL "static") # No dlls file(REMOVE_RECURSE - ${CURRENT_PACKAGES_DIR}/bin - ${CURRENT_PACKAGES_DIR}/debug/bin) + "${CURRENT_PACKAGES_DIR}/bin" + "${CURRENT_PACKAGES_DIR}/debug/bin") endif() # Handle copyright -file(INSTALL ${SOURCE_PATH}/COPYING - DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} +file(INSTALL "${SOURCE_PATH}/COPYING" + DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) -vcpkg_copy_pdbs() +vcpkg_copy_pdbs()
\ No newline at end of file diff --git a/ports/corrade/vcpkg.json b/ports/corrade/vcpkg.json index 83940abbc..d727769a1 100644 --- a/ports/corrade/vcpkg.json +++ b/ports/corrade/vcpkg.json @@ -1,7 +1,7 @@ { "name": "corrade", "version-string": "2020.06", - "port-version": 2, + "port-version": 3, "description": "C++11/C++14 multiplatform utility library.", "homepage": "https://magnum.graphics/corrade/", "default-features": [ diff --git a/versions/baseline.json b/versions/baseline.json index 7d5da3bb3..0d6cb9e7c 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -1482,7 +1482,7 @@ }, "corrade": { "baseline": "2020.06", - "port-version": 2 + "port-version": 3 }, "cpp-base64": { "baseline": "V2.rc.08", diff --git a/versions/c-/corrade.json b/versions/c-/corrade.json index 08452c733..6a1a88a1a 100644 --- a/versions/c-/corrade.json +++ b/versions/c-/corrade.json @@ -1,6 +1,11 @@ { "versions": [ { + "git-tree": "087770e2a196c44cb1b56473bd57797ed9b9bc87", + "version-string": "2020.06", + "port-version": 3 + }, + { "git-tree": "ec9f53411152ed98e9d591afed7e34e65fb7abeb", "version-string": "2020.06", "port-version": 2 |
