Require C++17 for optionals
This commit is contained in:
parent
aa867b2e5f
commit
dd4aa6fb9d
|
@ -1,6 +1,10 @@
|
|||
cmake_minimum_required(VERSION 3.1)
|
||||
project(compiler)
|
||||
|
||||
# We want C++17 for std::optional
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# Find all the required packages
|
||||
find_package(BISON)
|
||||
find_package(FLEX)
|
||||
|
|
Loading…
Reference in New Issue
Block a user