fixed detection of IPP 7.1 (patch #2413: thanks to Gino van den Bergen!)

This commit is contained in:
Vadim Pisarevsky 2012-10-08 22:00:25 +04:00
parent 4be7619ce4
commit 0bfa58b68d

View File

@ -65,6 +65,9 @@ function(get_ipp_version _ROOT_DIR)
file(STRINGS ${_ROOT_DIR}/include/ippversion.h STR1 REGEX "IPP_VERSION_MAJOR")
file(STRINGS ${_ROOT_DIR}/include/ippversion.h STR2 REGEX "IPP_VERSION_MINOR")
file(STRINGS ${_ROOT_DIR}/include/ippversion.h STR3 REGEX "IPP_VERSION_BUILD")
if("${STR3}" STREQUAL "")
file(STRINGS ${_ROOT_DIR}/include/ippversion.h STR3 REGEX "IPP_VERSION_UPDATE")
endif()
file(STRINGS ${_ROOT_DIR}/include/ippversion.h STR4 REGEX "IPP_VERSION_STR")
# extract info and assign to variables