From 27f9e0efc35b9315e807303c020e8b9fa3bf91bc Mon Sep 17 00:00:00 2001 From: Enrico Seiler Date: Fri, 7 Mar 2025 11:42:37 +0100 Subject: [PATCH] [INFRA] Bump CMake --- cmake/sharg-package.cmake | 2 +- test/api_stability/CMakeLists.txt | 2 +- test/cmake/add_subdirectories.cmake | 2 +- test/cmake/diagnostics/list_missing_unit_tests.cmake | 2 +- test/cmake/diagnostics/list_unused_snippets.cmake | 2 +- test/cmake/diagnostics/list_unused_unit_tests.cmake | 2 +- .../cmake/include_dependencies/add_include_dependencies.cmake | 2 +- test/cmake/sharg_generate_snippet.cmake | 2 +- test/cmake/sharg_path_longest_stem.cmake | 2 +- test/cmake/sharg_test_component.cmake | 2 +- test/cmake/sharg_test_files.cmake | 2 +- test/documentation/CMakeLists.txt | 2 +- test/documentation/sharg-doxygen-package.cmake | 2 +- test/documentation/sharg-doxygen.cmake | 2 +- test/external_project/sharg_installed/CMakeLists.txt | 2 +- test/external_project/sharg_setup_tutorial/CMakeLists.txt | 4 ++-- .../sharg_submodule_add_subdirectory/CMakeLists.txt | 2 +- .../sharg_submodule_find_package/CMakeLists.txt | 2 +- test/header/generate_header_source.cmake | 2 +- test/sharg-test.cmake | 2 +- test/snippet/CMakeLists.txt | 2 +- test/snippet/compare_snippet_output.cmake | 2 +- test/unit/CMakeLists.txt | 2 +- 23 files changed, 24 insertions(+), 24 deletions(-) diff --git a/cmake/sharg-package.cmake b/cmake/sharg-package.cmake index 0d0a2e27..73de6bcd 100644 --- a/cmake/sharg-package.cmake +++ b/cmake/sharg-package.cmake @@ -4,7 +4,7 @@ # This file describes how Sharg will be packaged. -cmake_minimum_required (VERSION 3.7) +cmake_minimum_required (VERSION 3.12) set (CPACK_GENERATOR "TXZ") diff --git a/test/api_stability/CMakeLists.txt b/test/api_stability/CMakeLists.txt index a18ebd3a..5e15a916 100644 --- a/test/api_stability/CMakeLists.txt +++ b/test/api_stability/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.8) +cmake_minimum_required (VERSION 3.12) project (api_stability) diff --git a/test/cmake/add_subdirectories.cmake b/test/cmake/add_subdirectories.cmake index 2ac59911..e7969609 100644 --- a/test/cmake/add_subdirectories.cmake +++ b/test/cmake/add_subdirectories.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) # Calls add_subdirectory on all (direct) subdirectories of the given directory if they contain a `CMakeLists.txt` # diff --git a/test/cmake/diagnostics/list_missing_unit_tests.cmake b/test/cmake/diagnostics/list_missing_unit_tests.cmake index 3f7725ad..06d243b1 100644 --- a/test/cmake/diagnostics/list_missing_unit_tests.cmake +++ b/test/cmake/diagnostics/list_missing_unit_tests.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) set (sharg_test_include_targets "" diff --git a/test/cmake/diagnostics/list_unused_snippets.cmake b/test/cmake/diagnostics/list_unused_snippets.cmake index a4bbcf9e..2b6b5ce7 100644 --- a/test/cmake/diagnostics/list_unused_snippets.cmake +++ b/test/cmake/diagnostics/list_unused_snippets.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) set (sharg_test_snippets "" diff --git a/test/cmake/diagnostics/list_unused_unit_tests.cmake b/test/cmake/diagnostics/list_unused_unit_tests.cmake index 51b9630f..8096e880 100644 --- a/test/cmake/diagnostics/list_unused_unit_tests.cmake +++ b/test/cmake/diagnostics/list_unused_unit_tests.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) set (sharg_test_targets "" diff --git a/test/cmake/include_dependencies/add_include_dependencies.cmake b/test/cmake/include_dependencies/add_include_dependencies.cmake index 1f70be7d..b086305b 100644 --- a/test/cmake/include_dependencies/add_include_dependencies.cmake +++ b/test/cmake/include_dependencies/add_include_dependencies.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) include (diagnostics/list_missing_unit_tests) diff --git a/test/cmake/sharg_generate_snippet.cmake b/test/cmake/sharg_generate_snippet.cmake index d2f9dfb8..269352d1 100644 --- a/test/cmake/sharg_generate_snippet.cmake +++ b/test/cmake/sharg_generate_snippet.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) # Generate snippets from a source_snippet # diff --git a/test/cmake/sharg_path_longest_stem.cmake b/test/cmake/sharg_path_longest_stem.cmake index 37b718f1..6571f47f 100644 --- a/test/cmake/sharg_path_longest_stem.cmake +++ b/test/cmake/sharg_path_longest_stem.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) # A compatible function for cmake < 3.20 that basically returns `cmake_path (GET STEM LAST_ONLY )` function (sharg_path_longest_stem out_var filename) diff --git a/test/cmake/sharg_test_component.cmake b/test/cmake/sharg_test_component.cmake index f2116e43..f4e9ab54 100644 --- a/test/cmake/sharg_test_component.cmake +++ b/test/cmake/sharg_test_component.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) include (sharg_path_longest_stem) diff --git a/test/cmake/sharg_test_files.cmake b/test/cmake/sharg_test_files.cmake index 7a7777b5..0ae9199d 100644 --- a/test/cmake/sharg_test_files.cmake +++ b/test/cmake/sharg_test_files.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) # Finds all files relative to the `test_base_path_` which satisfy the given file pattern. # diff --git a/test/documentation/CMakeLists.txt b/test/documentation/CMakeLists.txt index e21ab402..89fc7985 100644 --- a/test/documentation/CMakeLists.txt +++ b/test/documentation/CMakeLists.txt @@ -3,7 +3,7 @@ # SPDX-License-Identifier: BSD-3-Clause # Minimum cmake version -cmake_minimum_required (VERSION 3.7) +cmake_minimum_required (VERSION 3.12) ### Find sharg include (../../cmake/sharg-config-version.cmake) diff --git a/test/documentation/sharg-doxygen-package.cmake b/test/documentation/sharg-doxygen-package.cmake index a13b0e09..edaa02f1 100644 --- a/test/documentation/sharg-doxygen-package.cmake +++ b/test/documentation/sharg-doxygen-package.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) set (CPACK_GENERATOR "TXZ") diff --git a/test/documentation/sharg-doxygen.cmake b/test/documentation/sharg-doxygen.cmake index 280dc20b..1613cb5b 100644 --- a/test/documentation/sharg-doxygen.cmake +++ b/test/documentation/sharg-doxygen.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) ### Find doxygen and dependency to DOT tool message (STATUS "Searching for doxygen.") diff --git a/test/external_project/sharg_installed/CMakeLists.txt b/test/external_project/sharg_installed/CMakeLists.txt index c0ada43b..9a668b2a 100644 --- a/test/external_project/sharg_installed/CMakeLists.txt +++ b/test/external_project/sharg_installed/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.12) project (sharg_app CXX) # --- helper scripts diff --git a/test/external_project/sharg_setup_tutorial/CMakeLists.txt b/test/external_project/sharg_setup_tutorial/CMakeLists.txt index f5b49038..8e716d6b 100644 --- a/test/external_project/sharg_setup_tutorial/CMakeLists.txt +++ b/test/external_project/sharg_setup_tutorial/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: CC0-1.0 -cmake_minimum_required (VERSION 3.5) +cmake_minimum_required (VERSION 3.12) # --- helper scripts include (../find-package-diagnostics.cmake) @@ -16,7 +16,7 @@ file (COPY "${CMAKE_SOURCE_DIR}/../src/hello_world.cpp" DESTINATION "${CMAKE_CUR set (CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../../source") ## [adding_files] -cmake_minimum_required (VERSION 3.5) +cmake_minimum_required (VERSION 3.12) project (sharg_tutorial CXX) # add sharg to search path diff --git a/test/external_project/sharg_submodule_add_subdirectory/CMakeLists.txt b/test/external_project/sharg_submodule_add_subdirectory/CMakeLists.txt index 3c895380..a7da0371 100644 --- a/test/external_project/sharg_submodule_add_subdirectory/CMakeLists.txt +++ b/test/external_project/sharg_submodule_add_subdirectory/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.12) project (sharg_app CXX) # --- helper scripts diff --git a/test/external_project/sharg_submodule_find_package/CMakeLists.txt b/test/external_project/sharg_submodule_find_package/CMakeLists.txt index ea5fe7e8..95c1c447 100644 --- a/test/external_project/sharg_submodule_find_package/CMakeLists.txt +++ b/test/external_project/sharg_submodule_find_package/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.4) +cmake_minimum_required (VERSION 3.12) project (sharg_app CXX) # --- helper scripts diff --git a/test/header/generate_header_source.cmake b/test/header/generate_header_source.cmake index 43eecb02..a1f742c5 100644 --- a/test/header/generate_header_source.cmake +++ b/test/header/generate_header_source.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) option (HEADER_FILE_ABSOLUTE "") option (HEADER_FILE_INCLUDE "") diff --git a/test/sharg-test.cmake b/test/sharg-test.cmake index c6717382..57551e57 100644 --- a/test/sharg-test.cmake +++ b/test/sharg-test.cmake @@ -6,7 +6,7 @@ # SeqAn3. To build tests, run cmake on one of the sub-folders in this directory # which contain a CMakeLists.txt. -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) # require Sharg package find_package (Sharg REQUIRED HINTS ${CMAKE_CURRENT_LIST_DIR}/../cmake) diff --git a/test/snippet/CMakeLists.txt b/test/snippet/CMakeLists.txt index 48a59c55..70246ff1 100644 --- a/test/snippet/CMakeLists.txt +++ b/test/snippet/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) project (sharg_test_snippet CXX) include (../sharg-test.cmake) diff --git a/test/snippet/compare_snippet_output.cmake b/test/snippet/compare_snippet_output.cmake index 4fbb7d50..77511d92 100644 --- a/test/snippet/compare_snippet_output.cmake +++ b/test/snippet/compare_snippet_output.cmake @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: CC0-1.0 -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) include ("${CMAKE_CURRENT_LIST_DIR}/../cmake/sharg_path_longest_stem.cmake") diff --git a/test/unit/CMakeLists.txt b/test/unit/CMakeLists.txt index 5d94feb9..681dabe0 100644 --- a/test/unit/CMakeLists.txt +++ b/test/unit/CMakeLists.txt @@ -2,7 +2,7 @@ # SPDX-FileCopyrightText: 2016-2024, Knut Reinert & MPI für molekulare Genetik # SPDX-License-Identifier: BSD-3-Clause -cmake_minimum_required (VERSION 3.10) +cmake_minimum_required (VERSION 3.12) project (sharg_test_unit CXX) include (../sharg-test.cmake)