Mercurial > dedupe
changeset 70:c2ad34480216
Quieting clang is obviously only needed for clang and breaks other compilers.
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Sat, 12 Jan 2013 12:15:34 +0100 |
| parents | 9161e9fd5b3f |
| children | 88f408092b6d |
| files | CMakeLists.txt |
| diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Sat Jan 12 11:50:42 2013 +0100 +++ b/CMakeLists.txt Sat Jan 12 12:15:34 2013 +0100 @@ -95,7 +95,9 @@ ADD_DEFINITIONS("-Wall -Werror") #Quiet clang, ccache combination -ADD_DEFINITIONS("-Qunused-arguments") +IF ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang") + ADD_DEFINITIONS("-Qunused-arguments") +ENDIF() #Quiet some warnings in headers ADD_DEFINITIONS("-Wno-self-assign")
