#
# ADOLC_INCLUDE_DIR
# ADOLC_LIBRARY
-# ADOLC_WITH_ATRIG_ERF
# ADOLC_WITH_ADVANCED_BRANCHING
+# ADOLC_WITH_ATRIG_ERF
+# ADOLC_WITH_BOOST_ALLOCATOR
#
SET(ADOLC_DIR "" CACHE PATH "An optional hint to an ADOL-C installation")
ELSE()
SET(ADOLC_WITH_ADVANCED_BRANCHING FALSE)
ENDIF()
+
+ #
+ # Check whether ADOL-C is configured to use the Boost pool allocator
+ #
+ FILE(STRINGS "${ADOLC_SETTINGS_H}" ADOLC_BOOST_POOL_STRING
+ REGEX "#define USE_BOOST_POOL"
+ )
+ IF(NOT "${ADOLC_BOOST_POOL_STRING}" STREQUAL "")
+ SET(ADOLC_WITH_BOOST_ALLOCATOR TRUE)
+ SET(_additional_library OPTIONAL BOOST_LIBRARIES)
+ ELSE()
+ SET(ADOLC_WITH_BOOST_ALLOCATOR FALSE)
+ SET(_additional_library)
+ ENDIF()
ENDIF()
DEAL_II_PACKAGE_HANDLE(ADOLC
- LIBRARIES REQUIRED ADOLC_LIBRARY
+ LIBRARIES
+ REQUIRED ADOLC_LIBRARY
+ ${_additional_library}
INCLUDE_DIRS REQUIRED ADOLC_INCLUDE_DIR
USER_INCLUDE_DIRS REQUIRED ADOLC_INCLUDE_DIR
CLEAR ADOLC_INCLUDE_DIR ADOLC_LIBRARY ADOLC_SETTINGS_H