[libcalamaresui] check for sufficiently-new KF5CoreAddons

- From 5.58, KOSRelease is available (not used yet, though)
main
Adriaan de Groot 6 years ago
parent a9f3b4050c
commit 5bae7b7b52

@ -83,3 +83,8 @@ calamares_add_library( calamaresui
EXPORT CalamaresLibraryDepends EXPORT CalamaresLibraryDepends
VERSION ${CALAMARES_VERSION_SHORT} VERSION ${CALAMARES_VERSION_SHORT}
) )
find_package( KF5CoreAddons 5.58 QUIET ) # If it's really new
if ( KF5CoreAddons_FOUND )
target_compile_definitions( calamaresui PRIVATE WITH_KOSRelease )
endif()

Loading…
Cancel
Save