From 28624ac01b42d2ddefe6d0f78b0521dba070a12d Mon Sep 17 00:00:00 2001 From: Mystro256 Date: Sun, 12 Feb 2017 01:43:19 -0500 Subject: [PATCH] fpermissive is only a C++ flag --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d15494bc..6e0edda8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -315,7 +315,7 @@ IF(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL Clang) ENDIF() # common flags - SET(MY_C_FLAGS -pipe -fPIC -fpermissive -Wformat -Wformat-security -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types) + SET(MY_C_FLAGS -pipe -fPIC -Wformat -Wformat-security -fexceptions -D_FORTIFY_SOURCE=2 -feliminate-unused-debug-types) # check if SSP flags are supported INCLUDE(CheckCXXCompilerFlag)