From 484791ef0d1a5a2e1228bd81f3ad9a8b049cd67e Mon Sep 17 00:00:00 2001 From: Chuck Walbourn Date: Wed, 17 Sep 2025 10:33:56 -0700 Subject: [PATCH] Upgrade to CMake 3.21 --- CMakeLists.txt | 2 +- CMakePresets.json | 4 ++-- README.md | 2 ++ 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index adea0ba..2a25c3c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright (c) Microsoft Corporation. # Licensed under the MIT License. -cmake_minimum_required (VERSION 3.20) +cmake_minimum_required (VERSION 3.21) set(FX_VERSION 11.30) diff --git a/CMakePresets.json b/CMakePresets.json index 29a105e..23ecf69 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -1,5 +1,5 @@ { - "version": 2, + "version": 3, "configurePresets": [ { "name": "base", @@ -8,7 +8,7 @@ "generator": "Ninja", "hidden": true, "binaryDir": "${sourceDir}/out/build/${presetName}", - "cacheVariables": { "CMAKE_INSTALL_PREFIX": "${sourceDir}/out/install/${presetName}" } + "installDir": "${sourceDir}/out/install/${presetName}" }, { diff --git a/README.md b/README.md index 0a6a9e2..a0ed495 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,8 @@ FOR SECURITY ADVISORIES, see [GitHub](https://github.com/microsoft/FX11/security For a full change history, see [CHANGELOG.md](https://github.com/microsoft/FX11/blob/main/CHANGELOG.md). +* The CMake projects require 3.21 or later. VS 2019 users will need to install a standalone version of CMake 3.21 or later and add it to their PATH. + * The library can be built with Visual C++ or with clang/LLVM for Windows. The code is not conformant enough to support the GNUC (MinGW) compiler. ## Support