5959#
6060# ============================================================================
6161
62- cmake_minimum_required (VERSION 3.5 ...3.30 )
62+ cmake_minimum_required (VERSION 3.20 ...3.31 )
6363
6464# ----------------------------------------------------------------------------
6565# Set initial variables
@@ -350,7 +350,8 @@ set (CXXSTD_TEST_SOURCE "#include <seqan3/core/platform.hpp>
350350# using try_compile instead of check_cxx_source_compiles to capture output in case of failure
351351file (WRITE "${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /CMakeTmp/src.cxx" "${CXXSTD_TEST_SOURCE} \n " )
352352
353- try_compile (SEQAN3_PLATFORM_TEST #
353+ # cmake-format: off
354+ try_compile (SEQAN3_PLATFORM_TEST
354355 ${CMAKE_BINARY_DIR}
355356 ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY} /CMakeTmp/src.cxx
356357 CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:STRING=${CMAKE_INCLUDE_PATH} ;${SEQAN3_INCLUDE_DIR} ;${SEQAN3_DEPENDENCY_INCLUDE_DIRS} "
@@ -360,6 +361,7 @@ try_compile (SEQAN3_PLATFORM_TEST #
360361 CXX_STANDARD_REQUIRED ON
361362 CXX_EXTENSIONS OFF
362363 OUTPUT_VARIABLE SEQAN3_PLATFORM_TEST_OUTPUT)
364+ # cmake-format: on
363365
364366if (SEQAN3_PLATFORM_TEST)
365367 seqan3_config_print ("SeqAn3 platform.hpp build: passed." )
@@ -401,7 +403,7 @@ set (SEQAN3_INCLUDE_DIRS ${SEQAN3_INCLUDE_DIR} ${SEQAN3_DEPENDENCY_INCLUDE_DIRS}
401403if (SEQAN3_FOUND AND NOT TARGET seqan3::seqan3)
402404 add_library (seqan3_seqan3 INTERFACE )
403405 target_compile_definitions (seqan3_seqan3 INTERFACE ${SEQAN3_DEFINITIONS} )
404- target_compile_features (seqan3_seqan3 INTERFACE cxx_std_23)
406+ target_compile_features (seqan3_seqan3 INTERFACE cxx_std_23)
405407 target_link_libraries (seqan3_seqan3 INTERFACE "${SEQAN3_LIBRARIES} " )
406408 # include seqan3/include/ as -I, because seqan3 should never produce warnings.
407409 target_include_directories (seqan3_seqan3 INTERFACE "${SEQAN3_INCLUDE_DIR} " )
0 commit comments