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)