[Patch] Fix SharedDesktopOntologies.cmake

Christophe Giboudeaux cgiboudeaux at gmail.com
Wed Dec 16 21:59:16 CET 2009


Hi,

Here is a testcase and a simple fix for SharedDesktopOntologies.cmake:

testcase:

find_package(KDE4)
include(KDE4Defaults)
find_package(SharedDesktopOntologies 1.0) #Version 1.0 doesn't exist.

What cmake does:
- opens FindSharedDesktopOntologies.cmake and start looking for 
SharedDesktopOntologiesConfig.cmake and 
SharedDesktopOntologiesConfigVersion.cmake

As the 1.0 version doesn't match ${SHAREDDESKTOPONTOLOGIES_VERSION}, 
SharedDesktopOntologies_DIR:PATH=SharedDesktopOntologies_DIR-NOTFOUND will be 
added to CMakeCache.txt and SHAREDDESKTOPONTOLOGIES_ROOT_DIR is not defined.

Here comes the problem: if not found, FindSharedDesktopOntologies tries to find 
nie/nie.trig and considers that's enough to set SHAREDDESKTOPONTOLOGIES_FOUND.

Solution: remove the find_path part from FindSharedDesktopOntologies.cmake. 
Patch attached.

Christophe.



-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_sdo.diff
Type: text/x-patch
Size: 1064 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20091216/0fe4a3df/attachment.diff 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20091216/0fe4a3df/attachment.sig 


More information about the Kde-buildsystem mailing list