BUG: Fix FindBoost version variable names to correct bug in Boost version detection
This commit is contained in:
parent
0d70967a04
commit
a1f1b712c5
|
@ -475,17 +475,17 @@ ELSE (_boost_IN_CACHE)
|
||||||
SET(Boost_FOUND FALSE)
|
SET(Boost_FOUND FALSE)
|
||||||
IF(Boost_INCLUDE_DIR)
|
IF(Boost_INCLUDE_DIR)
|
||||||
SET( Boost_FOUND TRUE )
|
SET( Boost_FOUND TRUE )
|
||||||
IF( Boost_FIND_VERSION_MAJOR AND Boost_VERSION_MAJOR LESS "${Boost_FIND_VERSION_MAJOR}" )
|
IF( Boost_FIND_VERSION_MAJOR AND Boost_MAJOR_VERSION LESS "${Boost_FIND_VERSION_MAJOR}" )
|
||||||
SET( Boost_FOUND FALSE )
|
SET( Boost_FOUND FALSE )
|
||||||
ELSE( Boost_FIND_VERSION_MAJOR AND Boost_VERSION_MAJOR LESS "${Boost_FIND_VERSION_MAJOR}" )
|
ELSE( Boost_FIND_VERSION_MAJOR AND Boost_MAJOR_VERSION LESS "${Boost_FIND_VERSION_MAJOR}" )
|
||||||
IF( Boost_FIND_VERSION_MINOR AND Boost_VERSION_MINOR LESS "${Boost_FIND_VERSION_MINOR}" )
|
IF( Boost_FIND_VERSION_MINOR AND Boost_MINOR_VERSION LESS "${Boost_FIND_VERSION_MINOR}" )
|
||||||
SET( Boost_FOUND FALSE )
|
SET( Boost_FOUND FALSE )
|
||||||
ELSE( Boost_FIND_VERSION_MINOR AND Boost_VERSION_MINOR LESS "${Boost_FIND_VERSION_MINOR}" )
|
ELSE( Boost_FIND_VERSION_MINOR AND Boost_MINOR_VERSION LESS "${Boost_FIND_VERSION_MINOR}" )
|
||||||
IF( Boost_FIND_VERSION_PATCH AND Boost_VERSION_SUBMINOR LESS "${Boost_FIND_VERSION_PATCH}" )
|
IF( Boost_FIND_VERSION_PATCH AND Boost_SUBMINOR_VERSION LESS "${Boost_FIND_VERSION_PATCH}" )
|
||||||
SET( Boost_FOUND FALSE )
|
SET( Boost_FOUND FALSE )
|
||||||
ENDIF( Boost_FIND_VERSION_PATCH AND Boost_VERSION_SUBMINOR LESS "${Boost_FIND_VERSION_PATCH}" )
|
ENDIF( Boost_FIND_VERSION_PATCH AND Boost_SUBMINOR_VERSION LESS "${Boost_FIND_VERSION_PATCH}" )
|
||||||
ENDIF( Boost_FIND_VERSION_MINOR AND Boost_VERSION_MINOR LESS "${Boost_FIND_VERSION_MINOR}" )
|
ENDIF( Boost_FIND_VERSION_MINOR AND Boost_MINOR_VERSION LESS "${Boost_FIND_VERSION_MINOR}" )
|
||||||
ENDIF( Boost_FIND_VERSION_MAJOR AND Boost_VERSION_MAJOR LESS "${Boost_FIND_VERSION_MAJOR}" )
|
ENDIF( Boost_FIND_VERSION_MAJOR AND Boost_MAJOR_VERSION LESS "${Boost_FIND_VERSION_MAJOR}" )
|
||||||
set(_boost_CHECKED_COMPONENT FALSE)
|
set(_boost_CHECKED_COMPONENT FALSE)
|
||||||
FOREACH(COMPONENT ${Boost_FIND_COMPONENTS})
|
FOREACH(COMPONENT ${Boost_FIND_COMPONENTS})
|
||||||
STRING(TOUPPER ${COMPONENT} COMPONENT)
|
STRING(TOUPPER ${COMPONENT} COMPONENT)
|
||||||
|
@ -549,7 +549,7 @@ ELSE (_boost_IN_CACHE)
|
||||||
ENDFOREACH(COMPONENT)
|
ENDFOREACH(COMPONENT)
|
||||||
ELSE (Boost_FOUND)
|
ELSE (Boost_FOUND)
|
||||||
IF (Boost_FIND_REQUIRED)
|
IF (Boost_FIND_REQUIRED)
|
||||||
MESSAGE(STATUS "Boost version required: ${Boost_FIND_VERSION}. Found: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}")
|
MESSAGE(STATUS "Boost version required: ${Boost_FIND_VERSION_MAJOR}.${Boost_FIND_VERSION_MINOR}.${Boost_FIND_VERSION_PATCH}, found: ${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}")
|
||||||
MESSAGE(FATAL_ERROR "Couldn't find the Boost libraries and/or include directory, or the version found is too old. Please install the Boost libraries AND development packages. You can set BOOST_ROOT, BOOST_INCLUDEDIR and BOOST_LIBRARYDIR to help find Boost.")
|
MESSAGE(FATAL_ERROR "Couldn't find the Boost libraries and/or include directory, or the version found is too old. Please install the Boost libraries AND development packages. You can set BOOST_ROOT, BOOST_INCLUDEDIR and BOOST_LIBRARYDIR to help find Boost.")
|
||||||
ENDIF(Boost_FIND_REQUIRED)
|
ENDIF(Boost_FIND_REQUIRED)
|
||||||
ENDIF(Boost_FOUND)
|
ENDIF(Boost_FOUND)
|
||||||
|
|
Loading…
Reference in New Issue