Skip to content

Commit

Permalink
fix issue with config file (elemental#120)
Browse files Browse the repository at this point in the history
  • Loading branch information
benson31 authored Mar 31, 2021
1 parent fe263a5 commit 1fa3874
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmake/configure_files/HydrogenConfig.cmake.in
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,16 @@ set(_HYDROGEN_HAVE_NCCL2 @HYDROGEN_HAVE_NCCL2@)
set(_HYDROGEN_HAVE_AL_MPI_CUDA @HYDROGEN_HAVE_AL_MPI_CUDA@)
set(_HYDROGEN_HAVE_AL_HOST_XFER @HYDROGEN_HAVE_AL_HOST_XFER@)
if (_HYDROGEN_HAVE_ALUMINUM)
set(_HYDROGEN_MIN_AL_VERSION @ALUMINUM_VERSION@)
if (NOT Aluminum_FOUND)
find_package(Aluminum 0.7.0 NO_MODULE QUIET
find_package(Aluminum ${_HYDROGEN_MIN_AL_VERSION} NO_MODULE QUIET
HINTS ${Aluminum_DIR} ${ALUMINUM_DIR} ${AL_DIR}
$ENV{Aluminum_DIR} $ENV{ALUMINUM_DIR} $ENV{AL_DIR}
PATH_SUFFIXES lib64/cmake/aluminum lib/cmake/aluminum
NO_DEFAULT_PATH)
if (NOT Aluminum_FOUND)
set(Aluminum_DIR "@Aluminum_DIR@")
find_package(Aluminum 0.7.0 NO_MODULE REQUIRED)
find_package(Aluminum ${_HYDROGEN_MIN_AL_VERSION} NO_MODULE REQUIRED)
endif ()
endif ()

Expand Down

0 comments on commit 1fa3874

Please sign in to comment.