diff --git a/CMakeLists.txt b/CMakeLists.txt index 9e746039fde0465c6ffaa575fb544298f99b43e0..f94dca78d4ca44a99de79071cd994a0ad4e31026 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -442,11 +442,11 @@ IF(OTB_USE_EXTERNAL_BOOST) CMAKE_FLAGS "-DINCLUDE_DIRECTORIES:PATH=${Boost_INCLUDE_DIR}" OUTPUT_VARIABLE OUTPUT) IF(BOOST_IS_COMPLETE) - MESSAGE(STATUS "Testing external Boost library -- yes") + MESSAGE(ERROR "Testing external Boost library -- yes") ELSE(BOOST_IS_COMPLETE) - MESSAGE(STATUS "Testing external Boost library -- no") + MESSAGE(ERROR "Testing external Boost library -- no") MESSAGE(STATUS "Force the OTB_USE_EXTERNAL_BOOST value to OFF.") - SET(OTB_USE_EXTERNAL_BOOST OFF) + SET(OTB_USE_EXTERNAL_BOOST OFF CACHE BOOL "Use an outside build of Boost." FORCE ) ENDIF(BOOST_IS_COMPLETE) INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR})