From 557dfa8bf14f75faa185af278e621c1e468b6cde Mon Sep 17 00:00:00 2001 From: Simon Zeni Date: Wed, 26 Jun 2024 11:14:02 -0400 Subject: [PATCH] cmake: bump required version to 3.22 Part-of: --- CMakeLists.txt | 6 ++---- doc/changes/misc_fixes/2261.md | 1 + 2 files changed, 3 insertions(+), 4 deletions(-) create mode 100644 doc/changes/misc_fixes/2261.md diff --git a/CMakeLists.txt b/CMakeLists.txt index 88cc27ac4..f39edb67b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ # Copyright 2018-2024, Collabora, Ltd. # SPDX-License-Identifier: BSL-1.0 -cmake_minimum_required(VERSION 3.10.2) +cmake_minimum_required(VERSION 3.22) project( XRT VERSION 24.0.0 @@ -41,15 +41,13 @@ if(NOT WIN32 AND NOT ANDROID) ) endif() -# We use C11 set(CMAKE_C_STANDARD 11) set(CMAKE_C_STANDARD_REQUIRED ON) -# We use C++17 set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) -# So that clangd/Intellisense/Sourcetrail know how to parse our code. +# Generates a `compile_commands.json` to help IDE intergration set(CMAKE_EXPORT_COMPILE_COMMANDS ON) ### diff --git a/doc/changes/misc_fixes/2261.md b/doc/changes/misc_fixes/2261.md new file mode 100644 index 000000000..bb5ec1519 --- /dev/null +++ b/doc/changes/misc_fixes/2261.md @@ -0,0 +1 @@ +cmake: bump minimum required version to 3.22