Skip to content

Commit

Permalink
#1602: CMake: disable compiler specific C++ extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 19, 2021
1 parent c076fe5 commit 142d754
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 142d754

Please sign in to comment.