From 49cd0018ed969a4a6339a1c23abc6c1118776481 Mon Sep 17 00:00:00 2001 From: "F. Duncanh" Date: Tue, 5 Sep 2023 23:51:14 -0400 Subject: [PATCH] require cmake>=3.5 to silence deprecation warning --- CMakeLists.txt | 6 +++++- README.html | 2 +- README.md | 2 +- README.txt | 2 +- lib/CMakeLists.txt | 2 +- lib/llhttp/CMakeLists.txt | 4 ++-- lib/playfair/CMakeLists.txt | 4 ++-- renderers/CMakeLists.txt | 2 +- 8 files changed, 14 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 08f729a..ade537f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,8 @@ -cmake_minimum_required( VERSION 3.4.3 ) +if ( APPLE ) + cmake_minimum_required( VERSION 3.13 ) +else () + cmake_minimum_required( VERSION 3.5 ) +endif () project( uxplay ) diff --git a/README.html b/README.html index 8221b56..5140578 100644 --- a/README.html +++ b/README.html @@ -239,7 +239,7 @@ libraries installed. Debian-based systems provide a package “build-essential” for use in compiling software. You also need pkg-config: if it is not found by “which pkg-config”, install pkg-config or its work-alike replacement pkgconf. Also make sure -that cmake>=3.4.1 is installed: +that cmake>=3.5 is installed: “sudo apt-get install cmake” (add build-essential and pkg-config (or pkgconf) to this if needed).

diff --git a/README.md b/README.md index f2d1019..71fdf17 100644 --- a/README.md +++ b/README.md @@ -191,7 +191,7 @@ You need a C/C++ compiler (e.g. g++) with the standard development libraries installed. Debian-based systems provide a package "build-essential" for use in compiling software. You also need pkg-config: if it is not found by "`which pkg-config`", install pkg-config or its work-alike replacement -pkgconf. Also make sure that cmake>=3.4.1 is installed: +pkgconf. Also make sure that cmake>=3.5 is installed: "`sudo apt-get install cmake`" (add ``build-essential`` and `pkg-config` (or ``pkgconf``) to this if needed). diff --git a/README.txt b/README.txt index 8618c95..dd64bd0 100644 --- a/README.txt +++ b/README.txt @@ -240,7 +240,7 @@ libraries installed. Debian-based systems provide a package "build-essential" for use in compiling software. You also need pkg-config: if it is not found by "`which pkg-config`", install pkg-config or its work-alike replacement pkgconf. Also make sure that -cmake\>=3.4.1 is installed: "`sudo apt-get install cmake`" (add +cmake\>=3.5 is installed: "`sudo apt-get install cmake`" (add `build-essential` and `pkg-config` (or `pkgconf`) to this if needed). Make sure that your distribution provides OpenSSL 1.1.1 or later, and diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt index edf1548..4dbdd37 100644 --- a/lib/CMakeLists.txt +++ b/lib/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4.1) +cmake_minimum_required(VERSION 3.5) include_directories( playfair llhttp ) message( STATUS "*** CFLAGS \"" ${CMAKE_C_FLAGS} "\" from build environment will be postpended to CMAKE_CFLAGS" ) diff --git a/lib/llhttp/CMakeLists.txt b/lib/llhttp/CMakeLists.txt index 3adb8ca..3895909 100644 --- a/lib/llhttp/CMakeLists.txt +++ b/lib/llhttp/CMakeLists.txt @@ -1,7 +1,7 @@ -cmake_minimum_required(VERSION 3.4.1) +cmake_minimum_required(VERSION 3.5) aux_source_directory(. llhttp_src) set(DIR_SRCS ${llhttp_src}) include_directories(.) add_library( llhttp STATIC - ${DIR_SRCS}) \ No newline at end of file + ${DIR_SRCS}) diff --git a/lib/playfair/CMakeLists.txt b/lib/playfair/CMakeLists.txt index 792daf0..163f9aa 100644 --- a/lib/playfair/CMakeLists.txt +++ b/lib/playfair/CMakeLists.txt @@ -1,7 +1,7 @@ -cmake_minimum_required(VERSION 3.4.1) +cmake_minimum_required(VERSION 3.5) aux_source_directory(. playfair_src) set(DIR_SRCS ${playfair_src}) include_directories(.) add_library( playfair STATIC - ${DIR_SRCS}) \ No newline at end of file + ${DIR_SRCS}) diff --git a/renderers/CMakeLists.txt b/renderers/CMakeLists.txt index fe0120f..3798fe9 100644 --- a/renderers/CMakeLists.txt +++ b/renderers/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.4.1) +cmake_minimum_required(VERSION 3.5) if (APPLE ) set( ENV{PKG_CONFIG_PATH} "/Library/FrameWorks/GStreamer.framework/Libraries/pkgconfig" ) # GStreamer.framework, preferred