diff options
author | Dirk Mueller <mueller@kde.org> | 2008-03-13 14:56:26 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@kde.org> | 2008-03-13 14:56:26 +0000 |
commit | f67ec1c2927d2f908fe73a4fed7864e6858828ac (patch) | |
tree | da172f31881b392b25fb1598db5181347850f763 | |
parent | 33dc0baf857b81826301dff74c458d61e7abc8ed (diff) | |
download | extra-cmake-modules-f67ec1c2927d2f908fe73a4fed7864e6858828ac.tar.gz extra-cmake-modules-f67ec1c2927d2f908fe73a4fed7864e6858828ac.tar.bz2 |
configure the strigi analyzer prefix in a central place instead of spreading it all over KDE
svn path=/trunk/KDE/kdelibs/; revision=785225
-rw-r--r-- | modules/FindStrigi.cmake | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/modules/FindStrigi.cmake b/modules/FindStrigi.cmake index 5368b318..f1e4d206 100644 --- a/modules/FindStrigi.cmake +++ b/modules/FindStrigi.cmake @@ -5,6 +5,7 @@ # STRIGI_INCLUDE_DIR - the Strigi include directory # STRIGI_STREAMANALYZER_LIBRARY - Link these to use Strigi streamanalyzer # STRIGI_STREAMS_LIBRARY - Link these to use Strigi streams +# STRIGI_ANALYZER_PREFIX - strigi plugin prefix # at first search only in the specified directories (NO_DEFAULT_PATH) # only if it wasn't found there, the second call to FIND_PATH/LIBRARY() @@ -118,4 +119,19 @@ find_package_handle_standard_args(Strigi "Couldn't find Strigi streams and streamanalyzer libraries. Set the environment variable STRIGI_HOME (or CMAKE_FIND_PREFIX_PATH if using CMake >=2.5) to the strigi install dir." STRIGI_STREAMS_LIBRARY STRIGI_STREAMANALYZER_LIBRARY STRIGI_INCLUDE_DIR) -mark_as_advanced(STRIGI_INCLUDE_DIR STRIGI_STREAMANALYZER_LIBRARY STRIGI_STREAMS_LIBRARY STRIGI_STRIGIQTDBUSCLIENT_LIBRARY ) +if(WIN32) + # this is needed to have mingw, cygwin and msvc libs installed in one directory + if(MSVC) + set(STRIGI_ANALYZER_PREFIX msvc_strigila_) + elseif(CYGWIN) + set(STRIGI_ANALYZER_PREFIX cyg_strigila_) + elseif(MINGW) + set(STRIGI_ANALYZER_PREFIX mingw_strigila_) + endif(MSVC) +else(WIN32) + set(STRIGI_ANALYZER_PREFIX strigila_) +endif(WIN32) + +mark_as_advanced(STRIGI_INCLUDE_DIR STRIGI_STREAMANALYZER_LIBRARY STRIGI_STREAMS_LIBRARY STRIGI_STRIGIQTDBUSCLIENT_LIBRARY STRIGI_ANALYZER_PREFIX) + + |