[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-frameworks-devel
Subject:    Re: configuration file found with version 4.96.0 but version 5.2 is required by the KF5 buld
From:       Alex Merry <kde () randomguy3 ! me ! uk>
Date:       2014-02-22 15:31:36
Message-ID: 5308C2D8.7080508 () randomguy3 ! me ! uk
[Download RAW message or body]

On 21/02/14 16:01, Shivam Makkar wrote:
> Hi ! 
> 
> I was trying to build Kde-Framework 5 and got following CMake error
> while executing ./kdesrc-build.
> 
> the error produces every time, for Kde-workspace and kde-rumtime,
> regarding config file found but with older version.
> 
> /CMake Error at
> /home/amourphious/kf5/inst/share/cmake-3.0/Modules/CMakeFindDependencyMacro.cmake:52
> (find_package):/
> /  Could not find a configuration file for package "KF5Pty" that is
> compatible/
> /  with requested version "5.2"./

This is a bug in CMake.  I've posted a patch to the cmake-developers
list.  You can wait for that to be applied, apply it yourself
(attached), or use an older version of CMake (anything from the 2.8.12
series is fine).

Alex


["0001-Fix-settings-of-the-version-variable-of-find_depende.patch" (text/x-patch)]

From d9da7a712d331e647d94fc12162e2c4df29ca7eb Mon Sep 17 00:00:00 2001
From: Alex Merry <kde@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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic