From 1bfb46dd35d4f277e43c6f92da5282f10491b43c Mon Sep 17 00:00:00 2001 From: Username404 Date: Wed, 24 Mar 2021 11:40:33 +0100 Subject: [PATCH] Revert "Use a ${} syntax for an if statement in CMakeLists.txt." This reverts commit c978c10ff75cd9d62aa028d880be345031595e8f. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index eab4984..1fdb977 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -31,7 +31,7 @@ if((${CMAKE_CXX_COMPILER_ID} STREQUAL GNU) OR (${CMAKE_CXX_COMPILER_ID} STREQUAL set(CMAKE_CXX_FLAGS "-flto ${CMAKE_CXX_FLAGS} -fpie -pipe -fstack-protector-strong -fstack-clash-protection") include(CheckCXXCompilerFlag) CHECK_CXX_COMPILER_FLAG("-fcf-protection" CF_PROTECTION_SUPPORTED) - if (${CF_PROTECTION_SUPPORTED}) + if (CF_PROTECTION_SUPPORTED) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fcf-protection") endif() endif()