Disable warning unused-command-line-argument when ccache used

This commit is contained in:
proller 2017-11-29 18:56:29 +03:00 committed by proller
parent 34eef961de
commit 62956c4592

View File

@ -55,8 +55,12 @@ if ( ( ARCH_ARM AND NOT ARCH_AARCH64 ) OR ARCH_I386)
message (WARNING "Support 32bit platforms is highly experimental")
endif ()
set (COMMON_WARNING_FLAGS "-Wall") # -Werror is also added inside directories with our own code.
set (CXX_WARNING_FLAGS "-Wnon-virtual-dtor")
set (COMMON_WARNING_FLAGS "${COMMON_WARNING_FLAGS} -Wall") # -Werror is also added inside directories with our own code.
set (CXX_WARNING_FLAGS "${CXX_WARNING_FLAGS} -Wnon-virtual-dtor")
if (CCACHE_FOUND)
# clang-6.0: warning: argument unused during compilation: '-stdlib=libc++'
set (CXX_WARNING_FLAGS "${CXX_WARNING_FLAGS} -Wnounused-command-line-argument")
endif ()
set (CXX11_ABI "ENABLE" CACHE STRING "Use C++11 ABI: DEFAULT, ENABLE, DISABLE")
option (TEST_COVERAGE "Enables flags for test coverage" OFF)