Skip to content

Commit

Permalink
correctly post-processing PMI paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Oct 27, 2023
1 parent da474ca commit 216e8f6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions cmake/HPX_SetupOpenSHMEM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ macro(hpx_setup_openshmem)
if(NOT PMI_LIBRARY OR NOT PMI_FOUND)
set(PMI_AUTOCONF_OPTS "--enable-pmi-simple")
else()
set(PMI_AUTOCONF_OPTS "--with-pmi=${PMI_INCLUDE_DIR}
--with-pmi-libdir=${PMI_LIBRARY}"
string(REGEX MATCH "(^\/[^\/]+)" PMI_INCLUDE_DIR_ROOT_PATH
${PMI_INCLUDE_DIR}
)
string(REGEX MATCH "(^\/[^\/]+)" PMI_LIBRARY_ROOT_PATH ${PMI_LIBRARY})
set(PMI_AUTOCONF_OPTS
"--with-pmi=${PMI_INCLUDE_DIR_ROOT_PATH} --with-pmi-libdir=${PMI_LIBRARY_ROOT_PATH}"
)
endif()

Expand Down

0 comments on commit 216e8f6

Please sign in to comment.