diff options
| author | Alexander Neundorf <neundorf@kde.org> | 2009-07-24 20:05:10 +0000 | 
|---|---|---|
| committer | Alexander Neundorf <neundorf@kde.org> | 2009-07-24 20:05:10 +0000 | 
| commit | add341781f3c8c3be79c2e68201ddfcfe1de421c (patch) | |
| tree | d7725c96a95fab01028cec20c83e9de27db024e4 | |
| parent | b4ba1600ca61259417da8571b14d0d924f0fe862 (diff) | |
| download | extra-cmake-modules-add341781f3c8c3be79c2e68201ddfcfe1de421c.tar.gz extra-cmake-modules-add341781f3c8c3be79c2e68201ddfcfe1de421c.tar.bz2 | |
-search also for SopranoAddOntology.cmake and include it automatically if found
Alex
svn path=/trunk/KDE/kdelibs/; revision=1002028
| -rw-r--r-- | modules/FindSoprano.cmake | 16 | 
1 files changed, 15 insertions, 1 deletions
| diff --git a/modules/FindSoprano.cmake b/modules/FindSoprano.cmake index fb84c2e4..e40275cd 100644 --- a/modules/FindSoprano.cmake +++ b/modules/FindSoprano.cmake @@ -47,6 +47,18 @@      ${KDE4_INCLUDE_DIR}      ) +  # find the cmake macro file installed by soprano, relative to the include dir +  get_filename_component(_SOPRANO_PREFIX ${SOPRANO_INCLUDE_DIR} PATH) +  # first check in <prefix>/share/soprano/cmake, if it's not found there, check in <prefix>/share/apps/cmake/modules +  # find_file(_SOPRANO_MACRO_FILE NAMES SopranoAddOntology.cmake HINTS ${_SOPRANO_PREFIX}/share/soprano/cmake ) +  find_file(_SOPRANO_MACRO_FILE NAMES SopranoAddOntology.cmake HINTS ${_SOPRANO_PREFIX}/share/apps/cmake/modules ) + +  # since which version of soprano is this file installed ? +  # we should fail if the file is not found but SOPRANO_MIN_VERSION is bigger than this version. +  if(_SOPRANO_MACRO_FILE) +    include(${_SOPRANO_MACRO_FILE}) +  endif(_SOPRANO_MACRO_FILE) +    find_library_with_debug(SOPRANO_INDEX_LIBRARIES       WIN32_DEBUG_POSTFIX d      NAMES @@ -208,6 +220,8 @@ mark_as_advanced(SOPRANO_CLIENT_LIBRARIES                   SOPRANO_LIBRARIES                   SOPRANO_SERVER_LIBRARIES                   SOPRANO_INCLUDE_DIR -                 SOPRANO_PLUGIN_DIR) +                 SOPRANO_PLUGIN_DIR +                 _SOPRANO_MACRO_FILE +                 )  #endif(SOPRANO_INCLUDE_DIR AND SOPRANO_LIBRARIES AND SOPRANO_INDEX_LIBRARIES AND SOPRANO_SERVER_LIBRARIES) | 
