Permalink
Browse files

madness-config finds non-embedded elemental compiled as part of MADNE…

…SS correctly in build and install locations
  • Loading branch information...
evaleev committed Nov 22, 2017
1 parent 0086733 commit 4455ea9d989cf3b6bd394c85f8dc62fbf50ea414
Showing with 5 additions and 1 deletion.
  1. +5 −1 cmake/madness-config.cmake.in
@@ -89,7 +89,11 @@ if (MADNESS_HAS_ELEMENTAL)
set(ELEMENTAL_PACKAGE_NAME @ELEMENTAL_PACKAGE_NAME@)
set(ELEMENTAL_CONFIGURE_NAME @ELEMENTAL_CONFIG_NAME@)
# where to look for elemental cmake config file
#set(${ELEMENTAL_PACKAGE_NAME}_DIR "${Elemental_BINARY_DIR}")
if(CMAKE_CURRENT_LIST_DIR EQUAL MADNESS_BINARY_DIR)
set(Elemental_DIR "${Elemental_BINARY_DIR}")
else()
set(Elemental_DIR "${PACKAGE_PREFIX_DIR}/CMake/elemental")
endif()
find_package(${ELEMENTAL_CONFIGURE_NAME} REQUIRED
COMPONENTS REQUIRED ${ELEMENTAL_PACKAGE_NAME})
list(APPEND MADNESS_BUILD_INCLUDE_DIRS

0 comments on commit 4455ea9

Please sign in to comment.