From 15cbe06f0c3a9311ee85ba729f6006edd87aceba Mon Sep 17 00:00:00 2001 From: Username404 Date: Tue, 9 Nov 2021 20:27:59 +0100 Subject: [PATCH] Make the check_cxx_compiler_flag invocation lowercase --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7230770..5cc8687 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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") include(CheckCXXCompilerFlag) 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) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CF_PROTECTION}") endif()