From 771e62ea8fd7d1b2c00a0d5a0671ef2407121f1d Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Sat, 4 Apr 2020 14:30:48 +0200 Subject: [PATCH] Allow optinally cmake 3.11 --- CMakeLists.txt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3c483cf86..e1a63f19c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.13) +cmake_minimum_required(VERSION 3.11...3.13) set( @@ -33,10 +33,17 @@ option(USE_BUNDLED_SODIUM "Use the bundled version of libsodium." option(USE_BUNDLED_ZLIB "Use the bundled version of zlib." ${HUNTER_ENABLED}) +if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.12) project(matrix_client VERSION 0.3.0 DESCRIPTION "Client API library for Matrix, built on top of Boost.Asio" HOMEPAGE_URL https://github.com/Nheko-Reborn/mtxclient) +else() +project(matrix_client + VERSION 0.3.0 + DESCRIPTION "Client API library for Matrix, built on top of Boost.Asio") +endif() + option(ASAN "Compile with address sanitizers" OFF) option(BUILD_LIB_TESTS "Build tests" ON) -- GitLab