From b6543b4a97aa50622e53e812fbde1d51896d1c68 Mon Sep 17 00:00:00 2001 From: Alex Neundorf Date: Sun, 13 May 2012 14:26:28 +0200 Subject: FindKF5: make actual component-finding work Alex --- find-modules/FindKF5.cmake | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/find-modules/FindKF5.cmake b/find-modules/FindKF5.cmake index e69909a9..ccf2bbd7 100644 --- a/find-modules/FindKF5.cmake +++ b/find-modules/FindKF5.cmake @@ -85,10 +85,13 @@ if(firstComponent) find_package(${firstComponent} ${KF5_FIND_VERSION} CONFIG ) - set(KF5_File "${firstComponent_CONFIG}") + set(KF5_File "${${firstComponent}_CONFIG}}") - if(NOT DEFINED ${firstComponent}_INSTALL_PREFIX) - message(STATUS "${firstComponent} does not set ${firstComponent}_INSTALL_PREFIX !") + if(${firstComponent}_CONFIG) + set(KF5_${firstComponent}_FOUND TRUE) + if(NOT DEFINED ${firstComponent}_INSTALL_PREFIX) + message(STATUS "${firstComponent} does not set ${firstComponent}_INSTALL_PREFIX !") + endif() endif() # search for the other components first in the same directory where the first one @@ -105,6 +108,9 @@ if(firstComponent) NO_CMAKE_SYSTEM_PATH NO_CMAKE_SYSTEM_PACKAGE_REGISTRY ) + if(${comp}_CONFIG) + set(KF5_${comp}_FOUND TRUE) + endif() message(STATUS "${comp}: ${${comp}_CONFIG}") endforeach() -- cgit v1.2.1