From 5bae7b7b52c680c4f695d89cdb5425d168b509b9 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 20 May 2019 13:25:07 +0200 Subject: [PATCH] [libcalamaresui] check for sufficiently-new KF5CoreAddons - From 5.58, KOSRelease is available (not used yet, though) --- src/libcalamaresui/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libcalamaresui/CMakeLists.txt b/src/libcalamaresui/CMakeLists.txt index 9b37c89d7..7776cd496 100644 --- a/src/libcalamaresui/CMakeLists.txt +++ b/src/libcalamaresui/CMakeLists.txt @@ -83,3 +83,8 @@ calamares_add_library( calamaresui EXPORT CalamaresLibraryDepends 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()