Merge pull request #139 from build-cpp/vcpkg-bump

Bump to the latest vcpkg
main
Duncan Ogilvie 8 months ago committed by GitHub
commit 926fc15fa2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -10,7 +10,7 @@ jobs:
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
os: [windows-2022, macos-11, ubuntu-20.04] os: [windows-2022, macos-latest, ubuntu-20.04]
env: env:
BUILD_TYPE: 'Release' BUILD_TYPE: 'Release'
CMAKE_GENERATOR: 'Ninja' CMAKE_GENERATOR: 'Ninja'

@ -19,7 +19,7 @@ description = "Dependencies from vcpkg"
# See https://github.com/microsoft/vcpkg/releases for vcpkg versions # See https://github.com/microsoft/vcpkg/releases for vcpkg versions
# See https://vcpkg.io/en/packages.html for available packages # See https://vcpkg.io/en/packages.html for available packages
[vcpkg] [vcpkg]
version = "2022.11.14" version = "2024.03.25"
packages = ["fmt"] packages = ["fmt"]
[find-package] [find-package]

@ -814,19 +814,20 @@ void generate_cmake(const char *path, const parser::Project *parent_project) {
cmd("if")("CMKR_ROOT_PROJECT", "AND", "NOT", "CMKR_DISABLE_VCPKG"); cmd("if")("CMKR_ROOT_PROJECT", "AND", "NOT", "CMKR_DISABLE_VCPKG");
cmd("include")("FetchContent"); cmd("include")("FetchContent");
comment("Fix warnings about DOWNLOAD_EXTRACT_TIMESTAMP"); comment("Fix warnings about DOWNLOAD_EXTRACT_TIMESTAMP");
// clang-format off
cmd("if")("POLICY", "CMP0135"); cmd("if")("POLICY", "CMP0135");
cmd("cmake_policy")("SET", "CMP0135", "NEW"); cmd("cmake_policy")("SET", "CMP0135", "NEW");
cmd("endif")(); cmd("endif")();
// clang-format on cmd("message")("STATUS", "Fetching vcpkg (" + version_name + ")...");
cmd("message")("STATUS", "Fetching vcpkg (" + version_name + ")..."); cmd("FetchContent_Declare")("vcpkg", "URL", url);
cmd("FetchContent_Declare")("vcpkg", "URL", url); // Not using FetchContent_MakeAvailable here in case vcpkg adds CMakeLists.txt
// Not using FetchContent_MakeAvailable here in case vcpkg adds CMakeLists.txt cmd("FetchContent_GetProperties")("vcpkg");
cmd("FetchContent_GetProperties")("vcpkg"); cmd("if")("NOT", "vcpkg_POPULATED");
cmd("if")("NOT", "vcpkg_POPULATED"); cmd("FetchContent_Populate")("vcpkg");
cmd("FetchContent_Populate")("vcpkg"); cmd("if")("CMAKE_HOST_SYSTEM_NAME", "STREQUAL", "Darwin", "AND", "CMAKE_OSX_ARCHITECTURES", "STREQUAL", RawArg("\"\""));
cmd("include")("${vcpkg_SOURCE_DIR}/scripts/buildsystems/vcpkg.cmake"); cmd("set")("CMAKE_OSX_ARCHITECTURES", "${CMAKE_HOST_SYSTEM_PROCESSOR}", "CACHE", "STRING", RawArg("\"\""), "FORCE");
cmd("endif")(); cmd("endif")();
cmd("include")("${vcpkg_SOURCE_DIR}/scripts/buildsystems/vcpkg.cmake");
cmd("endif")();
cmd("endif")(); cmd("endif")();
endl(); endl();
// clang-format on // clang-format on

@ -7,7 +7,7 @@ description = "Dependencies from vcpkg"
# See https://github.com/microsoft/vcpkg/releases for vcpkg versions # See https://github.com/microsoft/vcpkg/releases for vcpkg versions
# See https://vcpkg.io/en/packages.html for available packages # See https://vcpkg.io/en/packages.html for available packages
[vcpkg] [vcpkg]
version = "2022.11.14" version = "2024.03.25"
packages = ["fmt"] packages = ["fmt"]
[find-package] [find-package]

Loading…
Cancel
Save