Skip to content

Commit 2d84062

Browse files
authored
Merge pull request #3314 from eseiler/infra/bump_cmake
[INFRA] Bump CMake
2 parents 29c2e98 + df6bb22 commit 2d84062

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+57
-146
lines changed

CMakeLists.txt

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,18 @@
66
# SeqAn3. To build tests, run cmake on one of the sub-folders in this directory
77
# which contain a CMakeLists.txt.
88

9-
cmake_minimum_required (VERSION 3.5...3.30)
9+
cmake_minimum_required (VERSION 3.20...3.31)
1010

1111
find_path (SEQAN3_MODULE_PATH "seqan3-config.cmake" HINTS "${CMAKE_CURRENT_LIST_DIR}/cmake/")
1212
list (APPEND CMAKE_MODULE_PATH "${SEQAN3_MODULE_PATH}")
1313

1414
include (seqan3-config-version)
1515

16-
if (CMAKE_VERSION VERSION_LESS 3.12)
17-
project (seqan3
18-
LANGUAGES CXX
19-
VERSION "${SEQAN3_PROJECT_VERSION}")
20-
else ()
21-
project (seqan3
22-
LANGUAGES CXX
23-
VERSION "${SEQAN3_PROJECT_VERSION}"
24-
DESCRIPTION "SeqAn3 -- the modern C++ library for sequence analysis" # since cmake 3.9
25-
HOMEPAGE_URL "https://github.com/seqan/seqan3" # since cmake 3.12
26-
)
27-
endif ()
16+
project (seqan3
17+
LANGUAGES CXX
18+
VERSION "${SEQAN3_PROJECT_VERSION}"
19+
DESCRIPTION "SeqAn3 -- the modern C++ library for sequence analysis"
20+
HOMEPAGE_URL "https://github.com/seqan/seqan3")
2821

2922
find_package (SeqAn3 3.0 REQUIRED HINTS ${SEQAN3_MODULE_PATH})
3023

cmake/seqan3-config.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,6 @@
6161
#
6262
# ============================================================================
6363

64-
cmake_minimum_required (VERSION 3.5...3.30)
65-
6664
# ----------------------------------------------------------------------------
6765
# Set initial variables
6866
# ----------------------------------------------------------------------------

cmake/seqan3-install.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
# This file describes where and which parts of SeqAn3 should be installed to.
66

7-
cmake_minimum_required (VERSION 3.14...3.30)
8-
97
include (GNUInstallDirs)
108

119
# install documentation files in /share/doc

cmake/seqan3-package.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
# This file describes how SeqAn3 will be packaged.
66

7-
cmake_minimum_required (VERSION 3.7...3.30)
8-
97
set (CPACK_GENERATOR "TXZ")
108

119
set (CPACK_PACKAGE_VERSION "${SEQAN3_VERSION}")

doc/setup/quickstart_cmake/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ For example, after adding `another_program.cpp` your `CMakeLists.txt` may look l
188188
# Including SeqAn3 as external project
189189

190190
```cmake
191-
cmake_minimum_required (VERSION 3.14...3.30)
191+
cmake_minimum_required (VERSION 3.20...3.31)
192192
193193
project (my_app LANGUAGES CXX VERSION 1.0.0)
194194

test/analyse/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: BSD-3-Clause
44

5-
cmake_minimum_required (VERSION 3.10...3.30)
5+
cmake_minimum_required (VERSION 3.20...3.31)
66
project (seqan3_test_analyze CXX)
77

88
include (../seqan3-test.cmake)

test/api_stability/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: CC0-1.0
44

5-
cmake_minimum_required (VERSION 3.8...3.30)
5+
cmake_minimum_required (VERSION 3.20...3.31)
66

77
project (api_stability)
88

test/cmake/add_subdirectories.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: BSD-3-Clause
44

5-
cmake_minimum_required (VERSION 3.10...3.30)
6-
75
# Calls add_subdirectory on all (direct) subdirectories of the given directory if they contain a `CMakeLists.txt`
86
#
97
# Example:

test/cmake/diagnostics/list_missing_unit_tests.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: BSD-3-Clause
44

5-
cmake_minimum_required (VERSION 3.10...3.30)
6-
75
set (seqan3_test_include_targets
86
""
97
CACHE STRING "" FORCE)

test/cmake/diagnostics/list_unused_snippets.cmake

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
# SPDX-FileCopyrightText: 2016-2024 Knut Reinert & MPI für molekulare Genetik
33
# SPDX-License-Identifier: BSD-3-Clause
44

5-
cmake_minimum_required (VERSION 3.10...3.30)
6-
75
set (seqan3_test_snippets
86
""
97
CACHE STRING "" FORCE)

0 commit comments

Comments
 (0)