Require C++17 for optionals

This commit is contained in:
Danila Fedorin 2020-09-09 15:14:37 -07:00
parent 588ce99601
commit bdaa046a8c

View File

@ -1,6 +1,10 @@
cmake_minimum_required(VERSION 3.1) cmake_minimum_required(VERSION 3.1)
project(compiler) 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 all the required packages
find_package(BISON) find_package(BISON)
find_package(FLEX) find_package(FLEX)