aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-05-13 14:26:28 +0200
committerAlex Neundorf <neundorf@kde.org>2012-05-13 14:26:28 +0200
commitb6543b4a97aa50622e53e812fbde1d51896d1c68 (patch)
treeedbb480d15b15160b2551ddbaf230a0abb4cf3a6
parent6f4a677eb2de89c54f24071b0af000018e46bad1 (diff)
downloadextra-cmake-modules-b6543b4a97aa50622e53e812fbde1d51896d1c68.tar.gz
extra-cmake-modules-b6543b4a97aa50622e53e812fbde1d51896d1c68.tar.bz2
FindKF5: make actual component-finding work
Alex
-rw-r--r--find-modules/FindKF5.cmake12
1 files 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()