Skip to content
Snippets Groups Projects
Commit 33c8421c authored by Julien Malik's avatar Julien Malik
Browse files

COMP: boost 1.35 is required for the special functions library

parent b8fc9f6b
No related branches found
No related tags found
No related merge requests found
......@@ -654,13 +654,18 @@ OPTION(OTB_USE_EXTERNAL_BOOST "Use an outside build of Boost." OFF)
IF(OTB_USE_EXTERNAL_BOOST)
FIND_PACKAGE(Boost)
IF(Boost_FOUND)
MESSAGE(STATUS "Found Boost version ${Boost_VERSION}")
IF( ${Boost_MINOR_VERSION} EQUAL 40)
MESSAGE(WARNING "Boost 1.40 not supported. Disabling OTB_USE_EXTERNAL_BOOST")
SET(OTB_USE_EXTERNAL_BOOST OFF)
ENDIF(${Boost_MINOR_VERSION} EQUAL 40)
IF( ${Boost_MINOR_VERSION} LESS 35)
MESSAGE(WARNING "Boost >= 1.35 is required. Disabling OTB_USE_EXTERNAL_BOOST")
SET(OTB_USE_EXTERNAL_BOOST OFF)
ENDIF(${Boost_MINOR_VERSION} LESS 35)
ELSE(Boost_FOUND)
MESSAGE(FATAL_ERROR
"Cannot build OTB project without boost library. Please set Boost directories or set OTB_USE_EXTERNAL_BOOST to OFF to use INTERNAL Boost set on OTB/Utilities repository.")
"Cannot build OTB project without boost library. Please set Boost directories or set OTB_USE_EXTERNAL_BOOST to OFF to use the INTERNAL Boost version")
ENDIF(Boost_FOUND)
ENDIF(OTB_USE_EXTERNAL_BOOST)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment