Make the check_cxx_compiler_flag invocation lowercase

This commit is contained in:
Username404 2021-11-09 20:27:59 +01:00
parent b6273e0d62
commit 15cbe06f0c
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ if (${IS_GNU} OR ${IS_CLANG})
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffunction-sections -fdata-sections -fmerge-all-constants -ftree-vectorize") set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -ffunction-sections -fdata-sections -fmerge-all-constants -ftree-vectorize")
include(CheckCXXCompilerFlag) include(CheckCXXCompilerFlag)
set(CF_PROTECTION "-fcf-protection") set(CF_PROTECTION "-fcf-protection")
CHECK_CXX_COMPILER_FLAG("${CF_PROTECTION}" CF_PROTECTION_SUPPORTED) check_cxx_compiler_flag("${CF_PROTECTION}" CF_PROTECTION_SUPPORTED)
if (CF_PROTECTION_SUPPORTED) if (CF_PROTECTION_SUPPORTED)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CF_PROTECTION}") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CF_PROTECTION}")
endif() endif()