Commit e8b6b7ad authored by Yann E. MORIN's avatar Yann E. MORIN

buildsystem: relax requirement on cmake version

Commit 73cc5089 (Using target_compile_features to specify C++ 11
standard) bumped the required cmake version, from 3.0 to 3.8, so
as to get the definition of target_compile_features().

However, target_compile_features() was introduced in cmake-3.1:
    https://cmake.org/cmake/help/v3.1/command/target_compile_features.html

And using cmake-3.1 is indeed sufficient to properly build.

As such, relax the minimum required version down to cmake-3.1,
so we can build on oldish, entreprise-grade distributions that
only have cmake-3.1 (or at least, don't have up to cmake-3.8).
Reported-by: default avatarThomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: default avatar"Yann E. MORIN" <yann.morin.1998@free.fr>
parent c682b987
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.1)
##
## PROJECT
......
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.1)
project(JSON_Benchmarks LANGUAGES CXX)
# set compiler flags
......
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.1)
project(DummyImport CXX)
......
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.1)
project(DummyImport CXX)
......
cmake_minimum_required(VERSION 3.8)
cmake_minimum_required(VERSION 3.1)
project(DummyImportMinVer CXX)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment