Require C++17 for optionals

This commit is contained in:
Danila Fedorin 2020-09-09 15:14:37 -07:00
parent aa867b2e5f
commit dd4aa6fb9d

View File

@ -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)