mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-10 04:50:37 -04:00
Added -Qunused-arguments for clang on macosx
The CLang provided through Xcode on Mac OSX emits warnings for all unused include paths making the compilation extremely verbose.
This commit is contained in:
parent
49efac5356
commit
ed99d92c01
@ -119,6 +119,10 @@ endif()
|
|||||||
if (APPLE)
|
if (APPLE)
|
||||||
# Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater.
|
# Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater.
|
||||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations")
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=deprecated-declarations")
|
||||||
|
# Get rid of "clang: warning: argument unused during compilation: -I etc
|
||||||
|
if ("${CMAKE_C_COMPILER_ID}" STREQUAL "Clang")
|
||||||
|
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Qunused-arguments")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Winsock.
|
# Winsock.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user