Skip to content

Commit

Permalink
Update CPPFLAGS for HWLOC config tests
Browse files Browse the repository at this point in the history
Ensure the tests can find the include file

Signed-off-by: Ralph Castain <rhc@pmix.org>
(cherry picked from commit 2649584)
  • Loading branch information
rhc54 committed Oct 4, 2023
1 parent 1995563 commit bb40850
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions config/prte_setup_hwloc.m4
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ AC_DEFUN([PRTE_SETUP_HWLOC],[
AC_MSG_ERROR([Cannot continue.])
fi

# update global flags to test for HWLOC version
PRTE_FLAGS_PREPEND_UNIQ([CPPFLAGS], [$prte_hwloc_CPPFLAGS])

# NOTE: We have already read PRRTE's VERSION file, so we can use
# those values
prte_hwloc_min_num_version=PRTE_HWLOC_NUMERIC_MIN_VERSION
Expand Down Expand Up @@ -93,6 +96,9 @@ AC_DEFUN([PRTE_SETUP_HWLOC],[
AC_MSG_WARN([to an HWLOC version in the $prte_hwloc_min_version-2.x range.])
AC_MSG_ERROR([Cannot continue])])

# reset global flags
CPPFLAGS=$prte_check_hwloc_save_CPPFLAGS

PRTE_FLAGS_APPEND_UNIQ([PRTE_FINAL_CPPFLAGS], [$prte_hwloc_CPPFLAGS])
PRTE_FLAGS_APPEND_UNIQ([PRTE_FINAL_LDFLAGS], [$prte_hwloc_LDFLAGS])
PRTE_FLAGS_APPEND_UNIQ([PRTE_FINAL_LIBS], [$prte_hwloc_LIBS])
Expand Down

0 comments on commit bb40850

Please sign in to comment.