Hey,
I'm trying to build konsole, which requires KNotifyConfig, but I'm having
trouble importing the target. When applying the attached patch to
KNotifyConfig (which I believe should add the right variables), I'm getting
CMake Error at /home/sebas/kf5/install/lib/x86_64-linux-
gnu/cmake/KNotifyConfig/KNotifyConfigConfig.cmake:11 (message):
File or directory referenced by variable KNotifyConfig_INCLUDE_DIR does not
exist !
Call Stack (most recent call first):
/home/sebas/kf5/install/lib/x86_64-linux-
gnu/cmake/KNotifyConfig/KNotifyConfigConfig.cmake:57 (set_and_check)
/home/sebas/kf5/install/share/ECM/find-modules/FindKF5.cmake:209
(find_package)
CMakeLists.txt:15 (find_package)
So it seems set_and_check doesn't do its job here. What could be the reason?
Cheers,
--
sebas
http://www.kde.org | http://vizZzion.org | GPG Key ID: 9119 0EF9
diff --git a/staging/knotifyconfig/KNotifyConfigConfig.cmake.in b/staging/knotifyconfig/KNotifyConfigConfig.cmake.in
index fbdea78..3e1070e 100644
--- a/staging/knotifyconfig/KNotifyConfigConfig.cmake.in
+++ b/staging/knotifyconfig/KNotifyConfigConfig.cmake.in
@@ -2,9 +2,11 @@
# Required components to use this framework
# For example:
-# find_dependency(Qt5Widgets "@REQUIRED_QT_VERSION@")
-# find_dependency(KCoreAddons "@KF5_VERSION@")
+
+set_and_check(KNotifyConfig_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
include("${CMAKE_CURRENT_LIST_DIR}/KNotifyConfigTargets.cmake")
-set(FooBar_LIBRARIES KF5::KNotifyConfig)
+set(KNotifyConfig_LIBRARIES KF5::KNotifyConfig)
+set(KNotifyConfig_INCLUDE_DIRS ${KNotifyConfig_INCLUDE_DIR})
+
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel