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()