From b0c859f2aacc8c857cfd9bdf1a3b7c664373bea6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cezary=20Skrzy=C5=84ski?= Date: Fri, 19 Nov 2021 14:07:36 +0100 Subject: [PATCH] #1602: CMake: disable compiler specific C++ extensions --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ca5cb158c9..c597d5b586 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,8 @@ if (ccache_binary) set_property(GLOBAL PROPERTY RULE_LAUNCH_COMPILE "${ccache_binary}") endif() +set(CMAKE_CXX_EXTENSIONS OFF) + if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU") add_compile_options(-fdiagnostics-color=always) elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")