From e5f3b22d63e3554000e63162f35ebef9f0e95aa0 Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Mon, 7 Aug 2023 19:03:18 +0200 Subject: [PATCH] cmake: update cmake_minimum_required to avoid deprecated warning --- .github/cmake/CMakeLists.txt | 2 +- .github/workflows/msvc.yml | 2 +- VisualC/pkg-support/cmake/sdl2-config.cmake | 2 +- docs/README-cmake.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/cmake/CMakeLists.txt b/.github/cmake/CMakeLists.txt index 39ebaf8b8..48757010a 100644 --- a/.github/cmake/CMakeLists.txt +++ b/.github/cmake/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.0...3.5) project(ci_utils C CXX) set(txt "CC=${CMAKE_C_COMPILER} diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index 78fb73a7c..a70a3b6a2 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -34,7 +34,7 @@ jobs: os.makedirs(builddir) with open(f"{ builddir }/CMakeLists.txt", "w") as f: f.write(textwrap.dedent(f"""\ - cmake_minimum_required(VERSION 3.0) + cmake_minimum_required(VERSION 3.0...3.5) project(sdl_user) add_subdirectory("{ srcdir }" SDL) """)) diff --git a/VisualC/pkg-support/cmake/sdl2-config.cmake b/VisualC/pkg-support/cmake/sdl2-config.cmake index 0f03a6305..e54f47000 100644 --- a/VisualC/pkg-support/cmake/sdl2-config.cmake +++ b/VisualC/pkg-support/cmake/sdl2-config.cmake @@ -1,7 +1,7 @@ # SDL2 CMake configuration file: # This file is meant to be placed in a cmake subfolder of SDL2-devel-2.x.y-VC -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.0...3.5) include(FeatureSummary) set_package_properties(SDL2 PROPERTIES diff --git a/docs/README-cmake.md b/docs/README-cmake.md index a86be338c..cfd40664c 100644 --- a/docs/README-cmake.md +++ b/docs/README-cmake.md @@ -48,7 +48,7 @@ SDL can be included in your project in 2 major ways: The following CMake script supports both, depending on the value of `MYGAME_VENDORED`. ```cmake -cmake_minimum_required(VERSION 3.0) +cmake_minimum_required(VERSION 3.5) project(mygame) # Create an option to switch between a system sdl library and a vendored sdl library