aboutsummaryrefslogtreecommitdiff
path: root/modules/FindStrigi.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'modules/FindStrigi.cmake')
-rw-r--r--modules/FindStrigi.cmake9
1 files changed, 6 insertions, 3 deletions
diff --git a/modules/FindStrigi.cmake b/modules/FindStrigi.cmake
index c9c5b671..83ac283f 100644
--- a/modules/FindStrigi.cmake
+++ b/modules/FindStrigi.cmake
@@ -15,8 +15,11 @@
include(FindLibraryWithDebug)
if(NOT STRIGI_MIN_VERSION)
- set(STRIGI_MIN_VERSION "0.6.0")
+ set(STRIGI_MIN_VERSION "0.5.9")
endif(NOT STRIGI_MIN_VERSION)
+if(NOT STRIGI_MAX_VERSION)
+ set(STRIGI_MAX_VERSION "0.5.99")
+endif(NOT STRIGI_MAX_VERSION)
if (WIN32)
file(TO_CMAKE_PATH "$ENV{PROGRAMFILES}" _program_FILES_DIR)
@@ -82,7 +85,7 @@ if (NOT WIN32 AND NOT HAVE_STRIGI_VERSION)
# if pkgconfig found strigi, check the version, otherwise print a warning
if(_dummyLinkFlags)
- exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=${STRIGI_MIN_VERSION}
+ exec_program(${PKGCONFIG_EXECUTABLE} ARGS --atleast-version=${STRIGI_MIN_VERSION} --max-version=${STRIGI_MAX_VERSION}
libstreamanalyzer RETURN_VALUE _return_VALUE OUTPUT_VARIABLE _pkgconfigDevNull )
if(NOT _return_VALUE STREQUAL "0")
@@ -117,7 +120,7 @@ endif (NOT WIN32 AND NOT HAVE_STRIGI_VERSION)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Strigi
- "Couldn't find Strigi streams and streamanalyzer libraries. Set the environment variable STRIGI_HOME (or CMAKE_PREFIX_PATH if using CMake >=2.6) to the strigi install dir."
+ "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)
if(WIN32)