Remove recent MacOs clang warning while compiling
This commit is contained in:
parent
b431c077ab
commit
a0a1859525
@ -138,8 +138,11 @@ if(NOT MSVC)
|
||||
#--------------------------------------
|
||||
add_compile_options("$<$<CONFIG:Debug>:-g>")
|
||||
add_compile_options("$<IF:$<CONFIG:Debug>,-O0,-O2>")
|
||||
|
||||
if(APPLE)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wno-switch -Wno-unused-function -Wno-implicit-fallthrough")
|
||||
else()
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -pedantic -Wno-switch -Wno-unused-function -Wno-implicit-fallthrough -Wno-cast-function-type")
|
||||
endif()
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
|
||||
set(CMAKE_OBJC_FLAGS "${CMAKE_C_FLAGS}")
|
||||
set(CMAKE_OBJCXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
||||
|
Loading…
Reference in New Issue
Block a user