Commit 5edea9e0 authored by Stephen Kelly's avatar Stephen Kelly
Browse files

Use the generate_export_header mechanism to disable deprecation warnings.

parent 0e3c96e3
......@@ -15,8 +15,15 @@ option(KALARM_USE_KRESOURCES "Build to use KResources" OFF)
set(USE_KRESOURCES false)
if(KALARM_USE_KRESOURCES AND NOT KDEPIM_NO_KRESOURCES)
set(USE_KRESOURCES true)
add_definitions(-DWANT_DEPRECATED_KCAL_API)
add_definitions(-DWANT_DEPRECATED_KRESOURCE_API)
add_definitions(
-DKRESOURCES_DEPRECATED=
-DKCAL_DEPRECATED=
)
# This one won't be needed when CMake 2.8.13 is depended on.
add_definitions(
-DKRESOURCES_DEPRECATED_EXPORT=KRESOURCES_EXPORT
-DKCAL_DEPRECATED_EXPORT=KCAL_EXPORT
)
endif()
########### next target ###############
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment