Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion cmake/libint2-config.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ list(PREPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR})
# check library language component
include(CMakeFindDependencyMacro)

set(LIBINT2_REQUIRE_CXX_API @LIBINT2_REQUIRE_CXX_API@)
if(LIBINT2_REQUIRE_CXX_API)
if(NOT TARGET Eigen3::Eigen)
set(Eigen3_CONFIG @Eigen3_CONFIG@)
if (NOT Eigen3_CONFIG OR NOT EXISTS ${Eigen3_CONFIG})
Expand All @@ -65,7 +67,6 @@ include(CMakeFindDependencyMacro)
find_dependency(Eigen3 REQUIRED HINTS "${Eigen3_DIR}")
endif()
endif()

if (@LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS@) # LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS
# Boost headers _not_ unpacked to within `include/libint2/`
if (NOT TARGET Boost::headers)
Expand All @@ -83,6 +84,7 @@ include(CMakeFindDependencyMacro)
message(STATUS "Boost detected. satisfied by headers bundled with ${L2} distribution")
endif()
endif()
endif()

# check orderings, AM, & derivatives components
# * LIBINT2_SHGAUSS_ORDERING = @LIBINT2_SHGAUSS_ORDERING@
Expand Down
2 changes: 1 addition & 1 deletion export/CMakeLists.txt.export
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@ install(CODE "
")

# install bundled Boost headers if needed
if (NOT LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS)
if (LIBINT2_REQUIRE_CXX_API AND NOT LIBINT_HAS_SYSTEM_BOOST_PREPROCESSOR_VARIADICS)
install(
DIRECTORY ${PROJECT_BINARY_DIR}/include/libint2/boost
DESTINATION "${LIBINT2_INSTALL_INCLUDEDIR}/libint2"
Expand Down
Loading