From 2b8f92552218a25be01635eed80db78bd3530ef0 Mon Sep 17 00:00:00 2001 From: fktn Date: Sat, 14 Dec 2024 00:07:42 +0900 Subject: [PATCH] Resolve CMake deprecation warning (#442) --- CMakeLists.txt | 2 +- test/cmake_add_subdirectory_test/project/CMakeLists.txt | 2 +- test/cmake_fetch_content_test/project/CMakeLists.txt | 2 +- test/cmake_find_package_test/project/CMakeLists.txt | 2 +- .../project/CMakeLists.txt | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c2a7896f..4577d3e7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.8...3.10) ################################ # Project name and version # diff --git a/test/cmake_add_subdirectory_test/project/CMakeLists.txt b/test/cmake_add_subdirectory_test/project/CMakeLists.txt index 352a5c88..bc13a073 100644 --- a/test/cmake_add_subdirectory_test/project/CMakeLists.txt +++ b/test/cmake_add_subdirectory_test/project/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.8...3.10) project(CMakeAddSubDirectoryTestProject) diff --git a/test/cmake_fetch_content_test/project/CMakeLists.txt b/test/cmake_fetch_content_test/project/CMakeLists.txt index f05dc93c..a6697d0d 100644 --- a/test/cmake_fetch_content_test/project/CMakeLists.txt +++ b/test/cmake_fetch_content_test/project/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.11.0) +cmake_minimum_required(VERSION 3.11) project("CMakeFetchContentTestProject") diff --git a/test/cmake_find_package_test/project/CMakeLists.txt b/test/cmake_find_package_test/project/CMakeLists.txt index fcab1cb1..df9ae236 100644 --- a/test/cmake_find_package_test/project/CMakeLists.txt +++ b/test/cmake_find_package_test/project/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.8...3.10) project(CMakeFindPackageTestProject) diff --git a/test/cmake_target_include_directories_test/project/CMakeLists.txt b/test/cmake_target_include_directories_test/project/CMakeLists.txt index 71b7bf09..a182449b 100644 --- a/test/cmake_target_include_directories_test/project/CMakeLists.txt +++ b/test/cmake_target_include_directories_test/project/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.8) +cmake_minimum_required(VERSION 3.8...3.10) project(CMakeTargetIncludeDirectoriesTestProject)