Skip to content

Commit

Permalink
build: Move minimum cmake version to 3.0.0
Browse files Browse the repository at this point in the history
Compatibility with versions prior to 2.8.12 is being deprecated,
resulting in build warning messages. The minimum for the official
supported distros is 3.7.2 (Stretch), so the version could be moved
forward when newer features are required.

Reference: https://cmake.org/cmake/help/v3.19/release/3.19.html#deprecated-and-removed-features
  • Loading branch information
jbroadus authored and hatstand committed Apr 17, 2021
1 parent 47f7b30 commit e736426
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion 3rdparty/google-breakpad/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.0.0)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})

Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/libmygpo-qt5/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required( VERSION 2.8.11 FATAL_ERROR )
cmake_minimum_required( VERSION 3.0.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" )
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/libprojectm/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(projectM)
cmake_minimum_required(VERSION 2.6.0)
cmake_minimum_required(VERSION 3.0.0)
SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "The projectM core library.")

include(CheckCXXCompilerFlag)
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/libprojectm/MilkdropPresetFactory/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(MilkdropPresetFactory)
cmake_minimum_required(VERSION 2.4.0)
cmake_minimum_required(VERSION 3.0.0)

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/libprojectm/Renderer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PROJECT(Renderer)
cmake_minimum_required(VERSION 2.4.0)
cmake_minimum_required(VERSION 3.0.0)

if(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/qsqlite/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)

add_definitions(-DQT_STATICPLUGIN)

Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/qtiocompressor/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)

set(IOCOMPRESSOR-SOURCES
qtiocompressor.cpp
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/qtsingleapplication/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --std=c++0x")

set(SINGLEAPP-SOURCES
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/qxt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_STANDARD 11)

set(QXT-SOURCES
Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/taglib/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-delete-non-virtual-dtor")

Expand Down
2 changes: 1 addition & 1 deletion 3rdparty/utf8-cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)
set(CMAKE_CXX_STANDARD 11)
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
project(clementine)

cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)
cmake_policy(SET CMP0011 OLD)
cmake_policy(SET CMP0053 OLD)

Expand Down
2 changes: 1 addition & 1 deletion cmake/ParseArguments.cmake
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# From http://www.cmake.org/Wiki/CMakeMacroParseArguments

cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.0.0)

MACRO(PARSE_ARGUMENTS prefix arg_names option_names)
SET(DEFAULT_ARGS)
Expand Down
2 changes: 1 addition & 1 deletion cmake/Translations.cmake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 3.0.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
Expand Down
2 changes: 1 addition & 1 deletion gst/moodbar/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Woverloaded-virtual -Wall --std=c++0x")
Expand Down
2 changes: 1 addition & 1 deletion tests/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cmake_minimum_required(VERSION 2.8.11)
cmake_minimum_required(VERSION 3.0.0)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fpermissive -Wno-c++11-narrowing")

Expand Down

0 comments on commit e736426

Please sign in to comment.