Skip to content

Commit ee718d0

Browse files
authored
Merge pull request #3223 from eseiler/infra/cmake
[INFRA] Bump minimal CMake version
2 parents 646b6a2 + 7ccfb7a commit ee718d0

File tree

13 files changed

+34
-33
lines changed

13 files changed

+34
-33
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ If possible, provide tooling that performs the changes, e.g. a shell-script.
3434

3535
#### Dependencies
3636
* We now use Doxygen version 1.9.8 to build our documentation ([\#3197](https://github.com/seqan/seqan3/pull/3197)).
37+
* We bumped the minimal CMake version to 3.5 ([\#3223](https://github.com/seqan/seqan3/pull/3223)).
3738

3839
# 3.3.0
3940

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# SeqAn3. To build tests, run cmake on one of the sub-folders in this directory
1010
# which contain a CMakeLists.txt.
1111

12-
cmake_minimum_required (VERSION 3.4)
12+
cmake_minimum_required (VERSION 3.5)
1313

1414
find_path (SEQAN3_MODULE_PATH "seqan3-config.cmake" HINTS "${CMAKE_CURRENT_LIST_DIR}/build_system/")
1515
list (APPEND CMAKE_MODULE_PATH "${SEQAN3_MODULE_PATH}")

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Please see the [online documentation](https://docs.seqan.de/seqan/3-master-user/
6767
| | requirement | version | comment |
6868
|-------------------|------------------------------------------------------|----------|---------------------------------------------|
6969
|**compiler** | [GCC](https://gcc.gnu.org) | ≥ 11 | no other compiler is currently supported! |
70-
|**build system** | [CMake](https://cmake.org) | ≥ 3.4 | optional, but recommended |
70+
|**build system** | [CMake](https://cmake.org) | ≥ 3.5 | optional, but recommended |
7171
|**required libs** | [SDSL](https://github.com/xxsds/sdsl-lite) | ≥ 3.0.3 | |
7272
|**optional libs** | [cereal](https://github.com/USCiLab/cereal) | ≥ 1.3.1 | required for serialisation and CTD support |
7373
| | [zlib](https://github.com/madler/zlib) | ≥ 1.2 | required for `*.gz` and `.bam` file support |

build_system/seqan3-config.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
#
6565
# ============================================================================
6666

67-
cmake_minimum_required (VERSION 3.4...3.12)
67+
cmake_minimum_required (VERSION 3.5...3.12)
6868

6969
# ----------------------------------------------------------------------------
7070
# Set initial variables

doc/setup/quickstart_cmake/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ works.
1313
# Software
1414
Requirements:
1515
- gcc >= 11
16-
- cmake >= 3.4
16+
- cmake >= 3.5
1717
- git
1818

1919
## Installing GCC

test/external_project/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
66
# -----------------------------------------------------------------------------------------------------
77

8-
cmake_minimum_required (VERSION 3.4)
8+
cmake_minimum_required (VERSION 3.5)
99
project (seqan3_test_external_project CXX)
1010

1111
include (../seqan3-test.cmake) # for SEQAN3_EXTERNAL_PROJECT_CMAKE_ARGS, SEQAN3_VERSION
@@ -21,9 +21,9 @@ endif ()
2121
option (SEQAN3_EXTERNAL_PROJECT_FIND_DEBUG_MODE
2222
"Enable this option if you want to get a detailed list which paths were considered for find_package(...)" false)
2323

24-
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.14) # cmake 3.14 version is needed to install cmake 3.4.
24+
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.14) # cmake 3.14 version is needed to install cmake 3.5.
2525
set (SEQAN3_EXTERNAL_PROJECT_CMAKE_COMMAND "${CMAKE_COMMAND}")
26-
include (use-cmake3.4.cmake) # ensure that seqan3 can be used with cmake 3.4
26+
include (use-cmake3.5.cmake) # ensure that seqan3 can be used with cmake 3.5
2727
else ()
2828
set (SEQAN3_EXTERNAL_PROJECT_CMAKE_COMMAND "${CMAKE_COMMAND}")
2929
endif ()
@@ -39,16 +39,16 @@ endif ()
3939
# fetch_content
4040
#
4141
# If your current CMake version is >= 3.14, we
42-
# * download CMake 3.4
43-
# * test test/external_project/seqan3_submodule_add_subdirectory/CMakeLists.txt with CMake 3.4
44-
# * test test/external_project/seqan3_submodule_find_package/CMakeLists.txt with CMake 3.4
45-
# * test test/external_project/seqan3_installed/CMakeLists.txt with CMake 3.4
42+
# * download CMake 3.5
43+
# * test test/external_project/seqan3_submodule_add_subdirectory/CMakeLists.txt with CMake 3.5
44+
# * test test/external_project/seqan3_submodule_find_package/CMakeLists.txt with CMake 3.5
45+
# * test test/external_project/seqan3_installed/CMakeLists.txt with CMake 3.5
4646
# * test test/external_project/seqan3_fetch_content_zip/CMakeLists.txt with your current CMake version
4747

4848
# 1) This tests test/external_project/seqan3_submodule_add_subdirectory/CMakeLists.txt
4949
# That means we use add_subdirectory directly on seqan3's top level CMakeLists.txt.
5050
# This will automatically call find_package and expose our seqan3::seqan3 target.
51-
# This is expected to work with CMake >= 3.4.
51+
# This is expected to work with CMake >= 3.5.
5252
# (ExternalProject_Add simulates a fresh and separate invocation of cmake ../)
5353
ExternalProject_Add (
5454
seqan3_submodule_add_subdirectory
@@ -62,7 +62,7 @@ ExternalProject_Add (
6262
# 2) This tests test/external_project/seqan3_submodule_find_package/CMakeLists.txt
6363
# We have a seqan3 checkout somewhere and we point CMAKE_PREFIX_PATH to <checkout>/seqan3/build_system
6464
# and then use `find_package` to find `seqan3-config.cmake` which exposes our `seqan3::seqan3` target.
65-
# This is expected to work with CMake >= 3.4.
65+
# This is expected to work with CMake >= 3.5.
6666
# (ExternalProject_Add simulates a fresh and separate invocation of cmake ../)
6767
ExternalProject_Add (
6868
seqan3_submodule_find_package
@@ -82,7 +82,7 @@ ExternalProject_Add (
8282
# https://github.com/seqan/seqan3/releases, and unzipping it to some folder and making
8383
# that path globally accessible by CMAKE_SYSTEM_PREFIX_PATH.
8484
# We need CMake >= 3.14 to be able to package seqan3, but we actually expect that this
85-
# test works with CMake >= 3.4.
85+
# test works with CMake >= 3.5.
8686
# (ExternalProject_Add simulates a fresh and separate invocation of cmake ../)
8787
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.14) # cmake 3.14 version is needed to install seqan3.
8888
ExternalProject_Add (

test/external_project/seqan3_installed/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
66
# -----------------------------------------------------------------------------------------------------
77

8-
cmake_minimum_required (VERSION 3.4)
8+
cmake_minimum_required (VERSION 3.5)
99
project (seqan3_app CXX)
1010

1111
# --- helper scripts

test/external_project/seqan3_setup_tutorial/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ file (COPY "${CMAKE_SOURCE_DIR}/../src/hello_world.cpp" DESTINATION "${CMAKE_CUR
1717
set (CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../../source")
1818

1919
## [adding_files]
20-
cmake_minimum_required (VERSION 3.4)
20+
cmake_minimum_required (VERSION 3.5)
2121
project (seqan3_tutorial CXX)
2222

2323
# add seqan3 to search path

test/external_project/seqan3_setup_tutorial_with_sharg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ set (CMAKE_CURRENT_SOURCE_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../../source")
1919
list (APPEND CMAKE_PREFIX_PATH "${SHARG_ROOT}/build_system")
2020

2121
## [adding_files]
22-
cmake_minimum_required (VERSION 3.4)
22+
cmake_minimum_required (VERSION 3.5)
2323
project (seqan3_tutorial CXX)
2424

2525
# add seqan3 to search path

test/external_project/seqan3_setup_tutorial_with_sharg_installed/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
66
# -----------------------------------------------------------------------------------------------------
77

8-
cmake_minimum_required (VERSION 3.4)
8+
cmake_minimum_required (VERSION 3.5)
99
project (seqan3_app CXX)
1010

1111
# --- helper scripts

0 commit comments

Comments
 (0)