Skip to content

Commit

Permalink
several fixes for cmake/autotool support
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-clmsn committed Oct 4, 2023
1 parent ce07069 commit d6c01ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmake/HPX_SetupGasnet.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,9 @@ macro(hpx_setup_gasnet)
"GASNet build result = ${GASNET_BUILD_STATUS} - see ${GASNET_BUILD_OUTPUT} for more details"
)
else()
set(CMAKE_PREFIX_PATH "${GASNET_DIR}/install/lib/pkgconfig")
set(ENV{PKG_CONFIG_PATH} "${GASNET_DIR}/install/lib/pkgconfig")

find_file(
GASNET_PKGCONFIG_FILE_FOUND
gasnet-${HPX_WITH_PARCELPORT_GASNET_CONDUIT}-par.pc
Expand Down Expand Up @@ -213,6 +216,9 @@ macro(hpx_setup_gasnet)
endforeach()
endif()

set(CMAKE_PREFIX_PATH "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
set(ENV{PKG_CONFIG_PATH} "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")

pkg_search_module(
GASNET REQUIRED IMPORTED_TARGET GLOBAL
gasnet-${HPX_WITH_PARCELPORT_GASNET_CONDUIT}-par
Expand Down

0 comments on commit d6c01ac

Please sign in to comment.