Add disabled option to not show warnings

When reading the build output, this can help a bit to find the actual
error while porting.
This commit is contained in:
Sebastian Kügler 2013-07-08 00:15:37 +02:00
parent a54763b247
commit 1894bec012

View File

@ -31,6 +31,8 @@ find_package(kde4support REQUIRED NO_MODULE)
add_definitions(-DQT_DISABLE_DEPRECATED_BEFORE=0)
#add_definitions(-Wno-deprecated)
if(KDE_PLATFORM_FEATURE_DISABLE_DEPRECATED)
set(KDE_NO_DEPRECATED TRUE)
set(CMAKE_AUTOMOC_MOC_OPTIONS "-DKDE_NO_DEPRECATED")