2set(BOOST_ROOT "${BOOST_DIR}")
4set(BOOST_PYTHON_VERSION_SUFFIX
5 "${Python3_VERSION_MAJOR}${Python3_VERSION_MINOR}")
6set(BOOST_PYTHON_OPTIONAL_COMPONENTS
7 python${BOOST_PYTHON_VERSION_SUFFIX}
8 numpy${BOOST_PYTHON_VERSION_SUFFIX})
13 program_options log log_setup thread system filesystem
15 ${BOOST_PYTHON_OPTIONAL_COMPONENTS}
18if(BOOST_PYTHON_VERSION_SUFFIX)
19 set(_boost_python_library_release
20 "Boost_PYTHON${BOOST_PYTHON_VERSION_SUFFIX}_LIBRARY_RELEASE")
21 set(Boost_PYTHON_LIBRARY_RELEASE "${${_boost_python_library_release}}")
23 set(_boost_numpy_library_release
24 "Boost_NUMPY${BOOST_PYTHON_VERSION_SUFFIX}_LIBRARY_RELEASE")
25 set(Boost_NUMPY_LIBRARY_RELEASE "${${_boost_numpy_library_release}}")
28if((Boost_PYTHON_LIBRARY_RELEASE OR Boost_NUMPY_LIBRARY_RELEASE)
29 AND NOT TARGET Python3::Python)
31 "Boost.Python requires the embedding development library for "
32 "${MoFEM_PYTHON_EXECUTABLE}. Set Python3_EXECUTABLE and Python3_ROOT_DIR "
33 "to a Python installation with development headers and libraries.")
36message(STATUS "Boost_LIBRARIES ${Boost_LIBRARIES}")
37message(STATUS "Boost_LIBRARY_DIRS ${Boost_LIBRARY_DIRS}")
38message(STATUS "Boost_INCLUDE_DIRS ${Boost_INCLUDE_DIRS}")
39message(STATUS "Boost_PYTHON_LIBRARY_RELEASE ${Boost_PYTHON_LIBRARY_RELEASE}")
40message(STATUS "Boost_NUMPY_LIBRARY_RELEASE ${Boost_NUMPY_LIBRARY_RELEASE}")
42if(NOT Boost_LIBRARIES)
43 message(FATAL_ERROR "boost libraries not found")
44endif(NOT Boost_LIBRARIES)
48 NAMES boost/multi_index_container.hpp
52 ${PETSC_DIR}/${PETSC_ARCH}/include
54message(STATUS "Boost include found: " ${BOOST_INCLUDE_DIR})
55if(NOT BOOST_INCLUDE_DIR)
56 message(FATAL_ERROR "Boost include dir not found")
57endif(NOT BOOST_INCLUDE_DIR)
58include_directories(SYSTEM ${BOOST_INCLUDE_DIR})
60add_definitions(${Boost_LIB_DIAGNOSTIC_DEFINITIONS})
61add_definitions(-DBOOST_BIND_GLOBAL_PLACEHOLDERS)