diff --git a/CMakeLists.txt b/CMakeLists.txt index ae29ca2fc4..ba7a9e403f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,4 @@ -# 3.1 is OK for most parts. However: -# 3.3 is needed in src/libFLAC -# 3.5 is needed in src/libFLAC/ia32 -# 3.9 is needed in 'doc' because of doxygen_add_docs() -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.12...3.31) if(NOT (CMAKE_BUILD_TYPE OR CMAKE_CONFIGURATION_TYPES OR DEFINED ENV{CFLAGS} OR DEFINED ENV{CXXFLAGS})) set(CMAKE_BUILD_TYPE Release CACHE STRING "Choose the type of build, options are: None Debug Release RelWithDebInfo") diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 5808cf1da4..bb85c8d650 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -1,5 +1,3 @@ -cmake_minimum_required(VERSION 3.9) - option(BUILD_DOXYGEN "Enable API documentation building via Doxygen if not already present" ON) if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/api") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 262feeaddf..a61b38de0e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,5 +1,3 @@ -cmake_minimum_required(VERSION 3.11) - option(ENABLE_64_BIT_WORDS "Set FLAC__BYTES_PER_WORD to 8, for 64-bit machines. For 32-bit machines, turning this off might give a tiny speed improvement" ON) option(BUILD_UTILS "Build utils" OFF) diff --git a/src/share/utf8/CMakeLists.txt b/src/share/utf8/CMakeLists.txt index 389b09e26c..3ad0c71888 100644 --- a/src/share/utf8/CMakeLists.txt +++ b/src/share/utf8/CMakeLists.txt @@ -1,5 +1,3 @@ -cmake_minimum_required(VERSION 3.12) - add_library(utf8 STATIC charset.c iconvert.c