Skip to content
This repository has been archived by the owner on Mar 8, 2024. It is now read-only.

Commit

Permalink
CMake: Move more CXX setup to CompilerSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 25, 2023
1 parent 8c50e64 commit 965275e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ if (NOT BUILD_VERSION)
endif()

set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_EXTENSIONS OFF)

##
# Platform detection and some related checks
Expand Down
3 changes: 3 additions & 0 deletions cmake/CompilerSettings.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
include(CheckCXXCompilerFlag)
include(CheckCCompilerFlag)

set(CMAKE_CXX_EXTENSIONS OFF)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)

# Compiler detection
if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.7)
Expand Down

0 comments on commit 965275e

Please sign in to comment.