From 78e601edb4c3a8cebf74e735a9c25cb3f4bd05ad Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Mon, 13 Nov 2017 07:33:24 -0500 Subject: [PATCH] [kcrash] Simplify search for KF5::Crash --- CMakeLists.txt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e5e5e837c..fbc1cac26 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -124,10 +124,8 @@ option( WITH_PYTHONQT "Enable next generation Python modules API (experimental, option( WITH_KF5Crash "Enable crash reporting with KCrash." ON ) option( BUILD_TESTING "Build the testing tree." ON ) -find_package( KF5 5.18 COMPONENTS CoreAddons Crash OPTIONAL ) -if( KF5Crash_DIR ) # Why not a _FOUND mechanism? - find_package( KF5 5.18 COMPONENTS CoreAddons REQUIRED ) -else() +find_package( KF5 COMPONENTS CoreAddons Crash ) +if( NOT KF5Crash_FOUND ) set( WITH_KF5Crash OFF ) endif()