fix for old cmake version

This commit is contained in:
filux 2015-09-27 19:58:30 +02:00
parent 4bef525bf3
commit 5c5493397a
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ IF(CURL_FOUND)
ENDIF()
ENDIF()
ENDIF()
IF( "${CURL_VERSION_STRING}" VERSION_LESS "${CURL_MIN_VERSION_MG}")
IF(CURL_VERSION_STRING AND "${CURL_VERSION_STRING}" VERSION_LESS "${CURL_MIN_VERSION_MG}")
MESSAGE(STATUS "(please visit http://curl.haxx.se/libcurl/ to find a newer version)")
MESSAGE(FATAL_ERROR " CURL version = [${CURL_VERSION_STRING}] we require AT LEAST [7.16.4]")
ENDIF()