Make sure KF5_FOUND is FALSE when not all components are available
authorKevin Funk <kfunk@kde.org>
Tue, 9 May 2017 16:13:25 +0000 (18:13 +0200)
committerKevin Funk <kfunk@kde.org>
Tue, 9 May 2017 16:13:25 +0000 (18:13 +0200)
heaptrack_gui needs all components

CMakeLists.txt

index b7fa622..0cdde70 100644 (file)
@@ -39,7 +39,7 @@ if(HEAPTRACK_BUILD_GUI)
     find_package(ECM 1.0.0 NO_MODULE)
     if(Qt5_FOUND AND ECM_FOUND)
         set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
-            find_package(KF5 OPTIONAL_COMPONENTS CoreAddons I18n ItemModels ThreadWeaver ConfigWidgets KIO)
+            find_package(KF5 COMPONENTS CoreAddons I18n ItemModels ThreadWeaver ConfigWidgets KIO)
             find_package(KChart "2.6.0")
             set_package_properties(KChart PROPERTIES TYPE RECOMMENDED PURPOSE "Required for the heaptrack_gui executable. Get it from the kdiagram module.")
     endif()