diff --git a/3rdparty/google-breakpad/CMakeLists.txt b/3rdparty/google-breakpad/CMakeLists.txt index ab59e41f98..d79a420c8f 100644 --- a/3rdparty/google-breakpad/CMakeLists.txt +++ b/3rdparty/google-breakpad/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) include_directories(${CMAKE_CURRENT_SOURCE_DIR}) diff --git a/3rdparty/libmygpo-qt5/CMakeLists.txt b/3rdparty/libmygpo-qt5/CMakeLists.txt index a789728706..308fd35bb5 100644 --- a/3rdparty/libmygpo-qt5/CMakeLists.txt +++ b/3rdparty/libmygpo-qt5/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required( VERSION 3.0.0 FATAL_ERROR ) +cmake_minimum_required( VERSION 3.16.0 FATAL_ERROR) set( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules) set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DQT_NO_CAST_FROM_ASCII -DQT_NO_CAST_TO_ASCII" ) diff --git a/3rdparty/libprojectm/CMakeLists.txt b/3rdparty/libprojectm/CMakeLists.txt index a70f8a2b2e..4194a36424 100644 --- a/3rdparty/libprojectm/CMakeLists.txt +++ b/3rdparty/libprojectm/CMakeLists.txt @@ -1,5 +1,5 @@ PROJECT(projectM) -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The projectM core library.") include(CheckCXXCompilerFlag) diff --git a/3rdparty/libprojectm/MilkdropPresetFactory/CMakeLists.txt b/3rdparty/libprojectm/MilkdropPresetFactory/CMakeLists.txt index 824d51faed..6f73d9edd2 100644 --- a/3rdparty/libprojectm/MilkdropPresetFactory/CMakeLists.txt +++ b/3rdparty/libprojectm/MilkdropPresetFactory/CMakeLists.txt @@ -1,9 +1,9 @@ PROJECT(MilkdropPresetFactory) -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) - if(COMMAND cmake_policy) - cmake_policy(SET CMP0003 NEW) - endif(COMMAND cmake_policy) +if(COMMAND cmake_policy) + cmake_policy(SET CMP0003 NEW) +endif(COMMAND cmake_policy) SET(MilkdropPresetFactory_SOURCES BuiltinFuncs.cpp Func.cpp MilkdropPreset.cpp Param.hpp PresetFrameIO.cpp CustomShape.cpp Eval.cpp MilkdropPresetFactory.cpp PerPixelEqn.cpp BuiltinParams.cpp InitCond.cpp Parser.cpp CustomWave.cpp Expr.cpp PerPointEqn.cpp Param.cpp PerFrameEqn.cpp IdlePreset.cpp) diff --git a/3rdparty/libprojectm/Renderer/CMakeLists.txt b/3rdparty/libprojectm/Renderer/CMakeLists.txt index 40bfe2c20d..1bf1ada0a2 100644 --- a/3rdparty/libprojectm/Renderer/CMakeLists.txt +++ b/3rdparty/libprojectm/Renderer/CMakeLists.txt @@ -1,5 +1,5 @@ PROJECT(Renderer) -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) if(COMMAND cmake_policy) cmake_policy(SET CMP0003 NEW) diff --git a/3rdparty/qsqlite/CMakeLists.txt b/3rdparty/qsqlite/CMakeLists.txt index 0f1fba525c..f4be66a49d 100644 --- a/3rdparty/qsqlite/CMakeLists.txt +++ b/3rdparty/qsqlite/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) add_definitions(-DQT_STATICPLUGIN) diff --git a/3rdparty/qtiocompressor/CMakeLists.txt b/3rdparty/qtiocompressor/CMakeLists.txt index 98d6445f85..50a54ee927 100644 --- a/3rdparty/qtiocompressor/CMakeLists.txt +++ b/3rdparty/qtiocompressor/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(IOCOMPRESSOR-SOURCES qtiocompressor.cpp diff --git a/3rdparty/qtsingleapplication/CMakeLists.txt b/3rdparty/qtsingleapplication/CMakeLists.txt index c405256f9a..584f420940 100644 --- a/3rdparty/qtsingleapplication/CMakeLists.txt +++ b/3rdparty/qtsingleapplication/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(SINGLEAPP-SOURCES qtlocalpeer.cpp diff --git a/3rdparty/qxt/CMakeLists.txt b/3rdparty/qxt/CMakeLists.txt index b3348c4b86..4d5cb06183 100644 --- a/3rdparty/qxt/CMakeLists.txt +++ b/3rdparty/qxt/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(CMAKE_CXX_STANDARD 11) set(QXT-SOURCES diff --git a/3rdparty/taglib/CMakeLists.txt b/3rdparty/taglib/CMakeLists.txt index 39ffb95340..3178ecc465 100644 --- a/3rdparty/taglib/CMakeLists.txt +++ b/3rdparty/taglib/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-non-virtual-dtor") diff --git a/3rdparty/utf8-cpp/CMakeLists.txt b/3rdparty/utf8-cpp/CMakeLists.txt index 14e7fcdc2a..51db113619 100644 --- a/3rdparty/utf8-cpp/CMakeLists.txt +++ b/3rdparty/utf8-cpp/CMakeLists.txt @@ -1,2 +1,2 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(CMAKE_CXX_STANDARD 11) diff --git a/CMakeLists.txt b/CMakeLists.txt index 48b55f4c55..ff9a270cf7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,8 +1,6 @@ -cmake_minimum_required(VERSION 3.13.0) +cmake_minimum_required(VERSION 3.16.0) project(clementine) -cmake_policy(SET CMP0053 OLD) - include(CheckCXXCompilerFlag) include(FindPkgConfig) include(cmake/C++11Compat.cmake) diff --git a/cmake/ParseArguments.cmake b/cmake/ParseArguments.cmake index fd5f9987ec..913b869830 100644 --- a/cmake/ParseArguments.cmake +++ b/cmake/ParseArguments.cmake @@ -1,6 +1,6 @@ # From http://www.cmake.org/Wiki/CMakeMacroParseArguments -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) MACRO(PARSE_ARGUMENTS prefix arg_names option_names) SET(DEFAULT_ARGS) diff --git a/cmake/Translations.cmake b/cmake/Translations.cmake index a16bcc3901..210dcf74a7 100644 --- a/cmake/Translations.cmake +++ b/cmake/Translations.cmake @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set (XGETTEXT_OPTIONS --qt --keyword=tr:1,2c --keyword=tr --flag=tr:1:pass-c-format --flag=tr:1:pass-qt-format --keyword=trUtf8 --flag=tr:1:pass-c-format --flag=tr:1:pass-qt-format diff --git a/debian/CMakeLists.txt b/debian/CMakeLists.txt index 2a8693f74a..df4a37ba5a 100644 --- a/debian/CMakeLists.txt +++ b/debian/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 2.8) +cmake_minimum_required(VERSION 3.16) execute_process(COMMAND env LC_ALL=C date "+%a, %-d %b %Y %H:%M:%S %z" OUTPUT_VARIABLE DEB_DATE OUTPUT_STRIP_TRAILING_WHITESPACE) diff --git a/gst/moodbar/CMakeLists.txt b/gst/moodbar/CMakeLists.txt index 0bb87e8844..f3af764e7c 100644 --- a/gst/moodbar/CMakeLists.txt +++ b/gst/moodbar/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall") diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 81031b072e..10f1aad77a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.0.0) +cmake_minimum_required(VERSION 3.16.0) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -Wno-c++11-narrowing")