ELSE()
ADD_FLAGS(CMAKE_REQUIRED_FLAGS "-Werror")
ENDIF()
+ # The configure function is called only once. In case an externally provided
+ # boost library is detected, BOOST_INCLUDE_DIRS contains the include paths to
+ # be used and BOOST_BUNDLED_INCLUDE_DIRS is empty. For the bundled library, it
+ # is the other way around.
LIST(APPEND CMAKE_REQUIRED_INCLUDES ${BOOST_INCLUDE_DIRS} ${BOOST_BUNDLED_INCLUDE_DIRS})
+ # In case, the boost library already sets BOOST_NO_AUTO_PTR we report
+ # DEAL_II_HAS_AUTO_PTR to be true to avoid redefining the macro.
CHECK_CXX_SOURCE_COMPILES(
"
#include <memory>
ENDIF()
ENDIF()
+ # We need to set this path before calling the configure function
+ # to be able to use the include paths in the checks.
SET(BOOST_BUNDLED_INCLUDE_DIRS ${BOOST_FOLDER}/include)
FEATURE_BOOST_CONFIGURE_COMMON()