From dae64fb2f3506b2d32a46a1ff126b02889bc108c Mon Sep 17 00:00:00 2001 From: Nathan Moinvaziri <nathan@solidstatenetworks.com> Date: Mon, 8 Jan 2024 15:20:45 -0800 Subject: [PATCH] Set C/CXX standards versions in CMake. --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4933b57..52e065f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,10 @@ cmake_minimum_required(VERSION 3.15) +set(CMAKE_C_STANDARD 11) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) + add_subdirectory(lib/interop) set(SIMPLE_SRCS