SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-operator-names")
ENDIF()
-# C++ standard to use; NOTE: extensions are not allowed!
+# Option: C++ standard to use
+# Note: CMake by default enables C++ extensions; they can be disabled by additionally
+# specifying -DCMAKE_CXX_EXTENSIONS=OFF
SET(SALOME_CXX_STANDARD 11 CACHE STRING "C++ standard to use")
SET(_supported_standards 11 14 17 20)
IF(NOT ${SALOME_CXX_STANDARD} IN_LIST _supported_standards)
UNSET(_supported_standards)
MESSAGE(STATUS "Setting C++ standard to ${SALOME_CXX_STANDARD}")
SET(CMAKE_CXX_STANDARD ${SALOME_CXX_STANDARD})
-SET(CMAKE_CXX_EXTENSIONS OFF)
SET(CMAKE_CXX_STANDARD_REQUIRED ON)
# Fight warnings