This commit is contained in:
Deal(一线灵) 2023-02-18 16:08:49 +08:00 committed by GitHub
parent 2164c0a77d
commit d3689167e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -179,7 +179,9 @@ set(EXPORT_DECL "")
# Require C++14
set(CMAKE_CXX_STANDARD 14)
if(NOT DEFINED CMAKE_CXX_STANDARD)
set(CMAKE_CXX_STANDARD 14)
endif()
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
# Prefer C11, but support C99 and C90 too.