cmake: Bump minimum required version to 3.13.5

CMake 2.8 was already deprecated some time ago, and newer CMake
versions, such as 3.22.1, would report its use as a warning.

CMake 3.13.5 is a reasonably stable version that is well supported among
most distributions and implements resonable policies, such as CMP0077:

https://cmake.org/cmake/help/latest/policy/CMP0077.html

However, bumping to 3.13.5 caused CMP0053 to now trigger configuration
errors on FindLibSndFile.cmake, as parentheses must now be escaped.
Further reference on CMP0053 can be found at:

https://cmake.org/cmake/help/latest/policy/CMP0053.html
This commit is contained in:
Xavier Del Campo Romero 2024-04-15 01:32:58 +02:00
parent 613c44ef3f
commit a2fc226a31
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
3 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@
project(qatsh) project(qatsh)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 3.13.5)
# CMake Build options. # CMake Build options.
if(NOT DEFINED CMAKE_BUILD_TYPE) if(NOT DEFINED CMAKE_BUILD_TYPE)

View File

@ -23,8 +23,8 @@ FIND_PATH(LIBSNDFILE_INCLUDE_DIR
/opt/local # DarwinPorts /opt/local # DarwinPorts
/opt/csw # Blastwave /opt/csw # Blastwave
/opt /opt
"$ENV{ProgramFiles}\\libsndfile" "$ENV{ProgramFiles(x86)}\\libsndfile" "$ENV{ProgramFiles}\\libsndfile" "$ENV{ProgramFiles\(x86\)}\\libsndfile"
"$ENV{ProgramFiles}\\Mega-Nerd\\libsndfile" "$ENV{ProgramFiles(x86)}\\Mega-Nerd\\libsndfile") "$ENV{ProgramFiles}\\Mega-Nerd\\libsndfile" "$ENV{ProgramFiles\(x86\)}\\Mega-Nerd\\libsndfile")
#MESSAGE(STATUS "LIBSNDFILE_INCLUDE_DIR=${LIBSNDFILE_INCLUDE_DIR}") #MESSAGE(STATUS "LIBSNDFILE_INCLUDE_DIR=${LIBSNDFILE_INCLUDE_DIR}")
@ -44,8 +44,8 @@ FIND_LIBRARY(LIBSNDFILE_LIBRARY
/opt/local # DarwinPorts /opt/local # DarwinPorts
/opt/csw # Blastwave /opt/csw # Blastwave
/opt /opt
"$ENV{ProgramFiles}\\libsndfile" "$ENV{ProgramFiles(x86)}\\libsndfile" "$ENV{ProgramFiles}\\libsndfile" "$ENV{ProgramFiles\(x86\)}\\libsndfile"
"$ENV{ProgramFiles}\\Mega-Nerd\\libsndfile" "$ENV{ProgramFiles(x86)}\\Mega-Nerd\\libsndfile") "$ENV{ProgramFiles}\\Mega-Nerd\\libsndfile" "$ENV{ProgramFiles\(x86\)}\\Mega-Nerd\\libsndfile")
#MESSAGE(STATUS "LIBSNDFILE_LIBRARY=${LIBSNDFILE_LIBRARY}") #MESSAGE(STATUS "LIBSNDFILE_LIBRARY=${LIBSNDFILE_LIBRARY}")

View File

@ -18,7 +18,7 @@ if(NOT QT4_FOUND)
SET(OPTION_QT5 On) SET(OPTION_QT5 On)
endif() endif()
if(OPTION_QT5) if(OPTION_QT5)
cmake_minimum_required(VERSION 2.8.8) cmake_minimum_required(VERSION 3.13.5)
endif() endif()
if(OPTION_QT5) if(OPTION_QT5)