From e74dc488c2dda17d8164ec35f0f55c80f4766976 Mon Sep 17 00:00:00 2001 From: Vaughn Holmes Date: Mon, 16 Jun 2025 16:15:51 -0400 Subject: [PATCH] Let dependent project set different C++ std --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6bd74b735..29c09645a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -6,7 +6,9 @@ set(CXX_STANDARD_REQUIRED true) if (${CMAKE_PROJECT_NAME} STREQUAL nitro) # we are the top-level project and are responsible for configuration - + set(CMAKE_CXX_STANDARD 14) + set(CXX_STANDARD_REQUIRED true) + # Always turn on "warnings as errors" to avoid lots of (meaningless?) build output; # we'll dial-back warnings as necessary. if (MSVC)