mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Do not set C++ compilation options when compiling C files.
This commit is contained in:
parent
3c28b14440
commit
6f14954482
1 changed files with 4 additions and 2 deletions
|
|
@ -290,14 +290,16 @@ else()
|
|||
"-Wfloat-equal"
|
||||
"-Winit-self"
|
||||
"-Wno-error=deprecated-declarations"
|
||||
"-Woverloaded-virtual"
|
||||
"-Wpointer-arith"
|
||||
"-Wuninitialized"
|
||||
"-Wunused"
|
||||
)
|
||||
list(APPEND STRICT_OPTIONS_CXX
|
||||
"-Woverloaded-virtual"
|
||||
)
|
||||
CHECK_CXX_COMPILER_FLAG("-Wsuggest-override" SUGGEST_OVERRIDE)
|
||||
if (SUGGEST_OVERRIDE)
|
||||
list(APPEND STRICT_OPTIONS_CPP "-Wsuggest-override" "-Werror=suggest-override")
|
||||
list(APPEND STRICT_OPTIONS_CXX "-Wsuggest-override" "-Werror=suggest-override")
|
||||
endif ()
|
||||
list(APPEND STRICT_OPTIONS_C "-Wstrict-prototypes" "-Werror=strict-prototypes")
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "GNU")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue