From b74ca72bad1c4cbf8b4fb3cd8b8228ba8f533310 Mon Sep 17 00:00:00 2001 From: selsta Date: Mon, 8 Sep 2025 19:37:24 +0200 Subject: [PATCH] cmake: set minimum to 3.10 to fix warnings --- CMakeLists.txt | 4 ++-- README.md | 2 +- cmake/FindCcache.cmake | 2 +- external/easylogging++/CMakeLists.txt | 2 +- translations/CMakeLists.txt | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 417755848..910744007 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,7 @@ # # Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) message(STATUS "CMake version ${CMAKE_VERSION}") set(CMAKE_EXPORT_COMPILE_COMMANDS ON) @@ -222,7 +222,7 @@ function(forbid_undefined_symbols) file(MAKE_DIRECTORY "${TEST_PROJECT}") file(WRITE "${TEST_PROJECT}/CMakeLists.txt" [=[ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) project(test) option(EXPECT_SUCCESS "" ON) file(WRITE "${CMAKE_SOURCE_DIR}/incorrect_source.cpp" "void undefined_symbol(); void symbol() { undefined_symbol(); }") diff --git a/README.md b/README.md index e06be10da..7ffa0253c 100644 --- a/README.md +++ b/README.md @@ -165,7 +165,7 @@ library archives (`.a`). | Dep | Min. version | Vendored | Debian/Ubuntu pkg | Arch pkg | Void pkg | Fedora pkg | Optional | Purpose | | ------------ | ------------- | -------- | -------------------- | ------------ | ------------------ | ------------------- | -------- | --------------- | | GCC | 7 | NO | `build-essential` | `base-devel` | `base-devel` | `gcc` | NO | | -| CMake | 3.5 | NO | `cmake` | `cmake` | `cmake` | `cmake` | NO | | +| CMake | 3.10 | NO | `cmake` | `cmake` | `cmake` | `cmake` | NO | | | pkg-config | any | NO | `pkg-config` | `base-devel` | `base-devel` | `pkgconf` | NO | | | Boost | 1.66 | NO | `libboost-all-dev` | `boost` | `boost-devel` | `boost-devel` | NO | C++ libraries | | OpenSSL | basically any | NO | `libssl-dev` | `openssl` | `openssl-devel` | `openssl-devel` | NO | sha256 sum | diff --git a/cmake/FindCcache.cmake b/cmake/FindCcache.cmake index f3016ae55..8bbf6cb84 100644 --- a/cmake/FindCcache.cmake +++ b/cmake/FindCcache.cmake @@ -44,7 +44,7 @@ if (CCACHE_FOUND) # Try to compile a test program with ccache, in order to verify if it really works. (needed on exotic setups) set(TEST_PROJECT "${CMAKE_BINARY_DIR}/${CMAKE_FILES_DIRECTORY}/CMakeTmp") file(WRITE "${TEST_PROJECT}/CMakeLists.txt" [=[ -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) project(test) option (CCACHE "") file(WRITE "${CMAKE_SOURCE_DIR}/test.cpp" "int main() { return 0; }") diff --git a/external/easylogging++/CMakeLists.txt b/external/easylogging++/CMakeLists.txt index 95c3499c1..b89ca9910 100644 --- a/external/easylogging++/CMakeLists.txt +++ b/external/easylogging++/CMakeLists.txt @@ -26,7 +26,7 @@ # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) project(easylogging CXX) diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt index 77a42981f..4bc579aaa 100644 --- a/translations/CMakeLists.txt +++ b/translations/CMakeLists.txt @@ -26,7 +26,7 @@ # STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF # THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -cmake_minimum_required(VERSION 3.5) +cmake_minimum_required(VERSION 3.10) project(translations)