Skip to content
Snippets Groups Projects
Commit 471209e8 authored by Thomas Feuvrier's avatar Thomas Feuvrier
Browse files

ENH: Add TRY_COMPILE when External Boost library is selected. If the...

ENH: Add TRY_COMPILE when External Boost library is selected. If the compilation aborted, then the internal boost library is used, and OTB_USE_EXTERNAL_BOOST cmake value is force to OFF.
parent 251eb229
No related branches found
No related tags found
No related merge requests found
...@@ -442,9 +442,9 @@ IF(OTB_USE_EXTERNAL_BOOST) ...@@ -442,9 +442,9 @@ IF(OTB_USE_EXTERNAL_BOOST)
CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:PATH=${Boost_INCLUDE_DIR}" CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:PATH=${Boost_INCLUDE_DIR}"
OUTPUT_VARIABLE OUTPUT) OUTPUT_VARIABLE OUTPUT)
IF(BOOST_IS_COMPLETE) IF(BOOST_IS_COMPLETE)
MESSAGE(ERROR "Testing external Boost library -- yes") MESSAGE(STATUS "Testing external Boost library -- yes")
ELSE(BOOST_IS_COMPLETE) ELSE(BOOST_IS_COMPLETE)
MESSAGE(ERROR "Testing external Boost library -- no") MESSAGE(STATUS "Testing external Boost library -- no")
MESSAGE(STATUS "Force the OTB_USE_EXTERNAL_BOOST value to OFF.") MESSAGE(STATUS "Force the OTB_USE_EXTERNAL_BOOST value to OFF.")
SET(OTB_USE_EXTERNAL_BOOST OFF CACHE BOOL "Use an outside build of Boost." FORCE ) SET(OTB_USE_EXTERNAL_BOOST OFF CACHE BOOL "Use an outside build of Boost." FORCE )
ENDIF(BOOST_IS_COMPLETE) ENDIF(BOOST_IS_COMPLETE)
......
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