On Sun, Feb 23, 2014 at 3:58 PM, David Faure <fa...@kde.org> wrote:

> On Sunday 23 February 2014 11:05:16 David Gil Oliva wrote:
> > CMake Error at
> > /home/david/KF5/share/cmake-3.0/Modules/CMakeFindDependencyMacro.cmake:52
> > (find_package):
> >   Could not find a configuration file for package "KF5DesignerPlugin"
> that
> > is
> >   compatible with requested version "5.2".
>
> I just analyzed and reported this error on kde-buildsystem.
>
> For now, "git checkout v2.8.12.2" in your cmake git repo, or apply this
>
> diff --git a/kf5-frameworks-build-include b/kf5-frameworks-build-include
> index df4498a..c1cf637 100644
> --- a/kf5-frameworks-build-include
> +++ b/kf5-frameworks-build-include
> @@ -13,6 +13,8 @@
>
>  module cmake-git
>      repository git://cmake.org/cmake.git
> +    # Workaround for broken find_dependency in cmake master right now
> +    tag v2.8.12.2
>  end module
>
>  module libdbusmenu-qt
>


or you can apply the attached patch ( thank to alex )
I ran  into the same problem


> --
> David Faure, fa...@kde.org, http://www.davidfaure.fr
> Working on KDE, in particular KDE Frameworks 5
>
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel@kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel
>



-- 
Regards
Shivam Makkar
amourphious.appspot.com
From d9da7a712d331e647d94fc12162e2c4df29ca7eb Mon Sep 17 00:00:00 2001
From: Alex Merry <k...@randomguy3.me.uk>
Date: Sat, 22 Feb 2014 13:35:14 +0000
Subject: [PATCH] Fix settings of the version variable of find_dependency macro

It should be reset before use, as this is a macro, and the test should
be against ARGV1, not its value.
---
 Modules/CMakeFindDependencyMacro.cmake | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Modules/CMakeFindDependencyMacro.cmake b/Modules/CMakeFindDependencyMacro.cmake
index 0f1f56d..6f7dbe8 100644
--- a/Modules/CMakeFindDependencyMacro.cmake
+++ b/Modules/CMakeFindDependencyMacro.cmake
@@ -29,7 +29,8 @@
 
 macro(find_dependency dep)
   if (NOT ${dep}_FOUND)
-    if (${ARGV1})
+    set(version)
+    if (ARGV1)
       set(version ${ARGV1})
     endif()
     set(exact_arg)
-- 
1.9.0

_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to