diff --git a/CMakeLists.txt b/CMakeLists.txt index d6ef061..2929265 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,7 @@ cmake_minimum_required(VERSION 3.15) +set (CMAKE_CXX_STANDARD 17) + # Set the project name to your project name, my project isn't very descriptive project(myproject CXX) include(cmake/StandardProjectSettings.cmake) diff --git a/cmake/CompilerWarnings.cmake b/cmake/CompilerWarnings.cmake index c0b442e..52bd973 100644 --- a/cmake/CompilerWarnings.cmake +++ b/cmake/CompilerWarnings.cmake @@ -62,7 +62,7 @@ function(set_project_warnings project_name) ) if (WARNINGS_AS_ERRORS) - set(CLANG_WARNINGS ${CLANG_WARNINGS} -Werror) + set(CLANG_WARNINGS ${CLANG_WARNINGS} -Werror -Wno-unknown-warning-option) set(MSVC_WARNINGS ${MSVC_WARNINGS} /WX) endif() diff --git a/src/main.cpp b/src/main.cpp index 3a1a33f..8c37bb5 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,4 +1,5 @@ #include +#include #include #include