fpermissive is only a C++ flag

This commit is contained in:
Mystro256 2017-02-12 01:43:19 -05:00 committed by Rafael Kitover
parent e9e2100f6d
commit 28624ac01b
1 changed files with 1 additions and 1 deletions

View File

@ -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)