From 0f7829a99155ce4885c03ed179336ec7acb6f6ad Mon Sep 17 00:00:00 2001 From: Gordon Smith Date: Fri, 1 Mar 2024 12:42:19 +0000 Subject: [PATCH] HPCC-31383 Set CXX 17 for all targets Signed-off-by: Gordon Smith --- cmake_modules/commonSetup.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake_modules/commonSetup.cmake b/cmake_modules/commonSetup.cmake index ad92341ffce..660b68fefd9 100644 --- a/cmake_modules/commonSetup.cmake +++ b/cmake_modules/commonSetup.cmake @@ -25,6 +25,8 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "") SET (COMMONSETUP_DONE 1) + set(CMAKE_CXX_STANDARD 17) + MACRO (MACRO_ENSURE_OUT_OF_SOURCE_BUILD _errorMessage) STRING(COMPARE EQUAL "${CMAKE_SOURCE_DIR}" "${CMAKE_BINARY_DIR}" insource) IF (insource) @@ -332,7 +334,6 @@ IF ("${COMMONSETUP_DONE}" STREQUAL "") endif () SET (CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELEASE}") SET (CMAKE_C_FLAGS_RELWITHDEBINFO "${CMAKE_C_FLAGS_RELEASE}") - set(CMAKE_CXX_STANDARD 17) if (GENERATE_COVERAGE_INFO) message ("Build system with coverage.") if (CMAKE_COMPILER_IS_CLANGXX)