Skip to content
This repository has been archived by the owner on Nov 25, 2024. It is now read-only.

Commit

Permalink
Don't overwrite wholegraph_ROOT if provided (#114)
Browse files Browse the repository at this point in the history
This change allows standard CMake specification of the C++ package directory (via `-Dwholegraph_ROOT`) to also work during the Python build.

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Bradley Dice (https://github.com/bdice)
  - Ray Douglass (https://github.com/raydouglass)

URL: #114
  • Loading branch information
vyasr authored Dec 19, 2023
1 parent c43f6d1 commit ef5b3ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/pylibwholegraph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ include(../../cpp/cmake/thirdparty/get_raft.cmake)
#include(${CMAKE_CURRENT_LIST_DIR}/../cmake/thirdparty/nanobind.cmake)

# use <package>_ROOT here to take precedence over any other package
set(wholegraph_ROOT "$ENV{LIBWHOLEGRAPH_DIR}")
if (DEFINED ENV{LIBWHOLEGRAPH_DIR})
set(wholegraph_ROOT "$ENV{LIBWHOLEGRAPH_DIR}")
endif()
find_package(wholegraph "${RAPIDS_VERSION}.0" EXACT)
message("WholeGraph")
if (WHOLEGRAPH_FOUND)
Expand Down

0 comments on commit ef5b3ee

Please sign in to comment.