version checking for Oyranos

David Faure faure at kde.org
Thu Jan 9 17:11:56 UTC 2014


kolor-manager.git doesn't check the version number of the oyranos library it's using.

So I tried this:

diff --git a/CMakeLists.txt b/CMakeLists.txt
index a227fa8..8ce6372 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -15,7 +15,7 @@ SET( ${PROJECT_NAME}_MICRO_VERSION 2)
 SET( ${PROJECT_NAME}_VERSION ${${PROJECT_NAME}_MAJOR_VERSION}.${${PROJECT_NAME}_MINOR_VERSION}.${${PROJECT_NAME}_MICRO_VERSION} )
 
 FIND_PACKAGE(KDE4 REQUIRED )
-FIND_PACKAGE(Oyranos REQUIRED)
+FIND_PACKAGE(Oyranos 0.9.5 REQUIRED)
 FIND_PACKAGE(Xcm REQUIRED)       # for KolorServer
 
 INCLUDE_DIRECTORIES(${KDE4_INCLUDES} ${OYRANOS_INCLUDE_DIRS} ${XCM_INCLUDE_DIRS})

and it gives:

CMake Error at CMakeLists.txt:18 (FIND_PACKAGE):
  Could not find a configuration file for package "Oyranos" that is
  compatible with requested version "0.9.5".

  The following configuration files were considered but not accepted:

    /usr/lib64/oyranos/cmake/OyranosConfig.cmake, version: unknown


This OyranosConfig.cmake file (from OpenSUSE 13.1) is attached.
Is the problem that it only sets the version number if the lib is found?
But it is found, so surely that should be fine?

Thanks for your help, I'm not sure how to debug this.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OyranosConfig.cmake
Type: text/x-cmake
Size: 2098 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-buildsystem/attachments/20140109/49c9f6b1/attachment.bin>


More information about the Kde-buildsystem mailing list