1
0
mirror of https://github.com/ohwgiles/laminar.git synced 2024-10-27 20:34:20 +00:00

make cmake 3.6 the minimum supported version

All packaged distros have this for a long time now.
This commit is contained in:
Oliver Giles 2021-07-06 14:53:56 +12:00
parent 7f1c293588
commit 60f7ee5402

View File

@ -1,5 +1,5 @@
### ###
### Copyright 2015-2020 Oliver Giles ### Copyright 2015-2021 Oliver Giles
### ###
### This file is part of Laminar ### This file is part of Laminar
### ###
@ -17,12 +17,12 @@
### along with Laminar. If not, see <http://www.gnu.org/licenses/> ### along with Laminar. If not, see <http://www.gnu.org/licenses/>
### ###
project(laminar) project(laminar)
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 3.6)
cmake_policy(SET CMP0058 NEW)
set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_CXX_STANDARD 17)
add_definitions("-std=c++17 -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter -Wno-sign-compare")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Werror -DDEBUG") set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Werror -DDEBUG")
# Allow passing in the version string, for e.g. patched/packaged versions # Allow passing in the version string, for e.g. patched/packaged versions