[RFC] cmake modules and keeping source compatibility

Sebastian Trüg strueg at mandriva.com
Fri Jan 18 21:54:44 GMT 2008


On Friday 18 January 2008 22:48:37 Alexander Neundorf wrote:
> On Friday 18 January 2008, Sebastian Trüg wrote:
> > As for Soprano is the attached patch ok?
>
> I'd prefer something like this in FindSoprano.cmake:
>
> IF(NOT SOPRANO_MIN_VERSION)
>    SET(SOPRANO_MIN_VERSION "1.99")
> ENDIF(NOT SOPRANO_MIN_VERSION)
>
> if(SOPRANO_VERSION STRLESS "${SOPRANO_MIN_VERSION}")
> ...

very good idea. I will do that.

>
> This way without changing anything in a 3rd party app the module behaves
> exactly as with KDE 4.0.0, and if a "user" needs another version he can set
> the version before:
>
> set(SOPRANO_MIN_VERSION "2.0")
> find_package(Soprano)
>
> find_package() must only fail with FATAL_ERROR or SEND_ERROR if REQUIRED
> was used in the find_package() call. Otherwise it's enough if SOPRANO_FOUND
> is not set.
>
> Independent from this, I'd still like to get some comments on the cmake
> source compat. issue.
>
> Bye
> Alex






More information about the kde-core-devel mailing list