From 6244bc5cc840d49d6810a4c7192d922a6dd30fca Mon Sep 17 00:00:00 2001 From: Vyas Ramasubramani Date: Tue, 19 Dec 2023 01:45:01 +0000 Subject: [PATCH] Don't overwrite wholegraph_ROOT if provided --- python/pylibwholegraph/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/python/pylibwholegraph/CMakeLists.txt b/python/pylibwholegraph/CMakeLists.txt index a8cd320e0..758fe3713 100644 --- a/python/pylibwholegraph/CMakeLists.txt +++ b/python/pylibwholegraph/CMakeLists.txt @@ -113,7 +113,9 @@ include(../../cpp/cmake/thirdparty/get_raft.cmake) #include(${CMAKE_CURRENT_LIST_DIR}/../cmake/thirdparty/nanobind.cmake) # use _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)