Mercurial > dedupe
diff CMakeLists.txt @ 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 | f3d4aba620cc |
| children | 88f408092b6d |
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")
