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:
Trond Norbye 2014-02-14 08:26:07 +01:00
parent 49efac5356
commit ed99d92c01

View File

@ -119,6 +119,10 @@ endif()
if (APPLE)
# Get rid of deprecated warnings for OpenSSL on OSX 10.7 and greater.
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()
# Winsock.