diff --git a/CMakeLists.txt b/CMakeLists.txt index 97e68fb77c..9638583e93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -92,9 +92,10 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Choose the type of build." FORCE) endif() -# Force C++11 and C99 +# Force C++11 (No extensions) and C99 set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED True) +set(CMAKE_CXX_EXTENSIONS OFF) if(NOT MSVC) set(CMAKE_C_STANDARD 99) set(CMAKE_C_STANDARD_REQUIRED True)