From ed99d92c014fdd724e79253384613d5c2d02ff9d Mon Sep 17 00:00:00 2001 From: Trond Norbye Date: Fri, 14 Feb 2014 08:26:07 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2602a6d3..71d96ec3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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. -- 2.40.0