Skip to content
Snippets Groups Projects
Commit 19c78d62 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

ENH: gives the possibility to use the boost library installed on the system

parent 95a6a29e
No related branches found
No related tags found
No related merge requests found
......@@ -312,6 +312,19 @@ IF(OTB_USE_CURL)
ENDIF(OTB_USE_CURL)
#-------------------------------
# Boost Library
#-------------------------------
# Option for internal/external BOOST
OPTION(OTB_USE_EXTERNAL_BOOST "Use an outside build of Boost." OFF)
MARK_AS_ADVANCED(OTB_USE_EXTERNAL_BOOST)
IF(OTB_USE_EXTERNAL_BOOST)
FIND_PACKAGE(Boost)
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})
ENDIF(OTB_USE_EXTERNAL_BOOST)
#-------------------------------
# GDAL Library
#-------------------------------
......
......@@ -25,8 +25,12 @@ IF(NOT OTB_USE_EXTERNAL_EXPAT)
SUBDIRS( otbexpat )
ENDIF(NOT OTB_USE_EXTERNAL_EXPAT)
IF(NOT OTB_USE_EXTERNAL_BOOST)
SUBDIRS(BGL)
ENDIF(NOT OTB_USE_EXTERNAL_BOOST)
SUBDIRS(BGL otbsvm dxflib InsightJournal otbossim otbossimplugins otb6S tinyXMLlib otbkml otbliblas otbedison otbsiftfast)
SUBDIRS(otbsvm dxflib InsightJournal otbossim otbossimplugins otb6S tinyXMLlib otbkml otbliblas otbedison otbsiftfast)
IF(BUILD_TESTING)
SUBDIRS( Dart )
......
......@@ -247,6 +247,12 @@ IF(OTB_USE_CURL)
${CURL_INCLUDE_DIR} )
ENDIF(OTB_USE_CURL)
#For BOOST header file
IF(OTB_USE_BOOST)
SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE}
${Boost_INCLUDE_DIR} )
ENDIF(OTB_USE_BOOST)
# For OpentTreads header file
IF(NOT OTB_USE_EXTERNAL_OPENTHREADS)
SET(OTB_INCLUDE_DIRS_INSTALL_TREE ${OTB_INCLUDE_DIRS_INSTALL_TREE}
......
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