Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@ project(
VERSION "${RAPIDS_VERSION}"
LANGUAGES CXX)

# Find CMake packages provided by installed wheels.
find_package(Python COMPONENTS Interpreter)
if(Python_FOUND)
include(${rapids-cmake-dir}/cython-core/find_prefix_paths.cmake)
rapids_cython_find_prefix_paths("${Python_EXECUTABLE}" wheel_prefix_paths)
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)
list(PREPEND CMAKE_PREFIX_PATH ${wheel_prefix_paths})
endif()

# Write the version header
rapids_cmake_write_version_file(include/nvforest/version_config.hpp)

Expand Down
3 changes: 3 additions & 0 deletions python/libnvforest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ project(
VERSION "${RAPIDS_VERSION}"
LANGUAGES CXX CUDA)

# Find C++ libraries from RAPIDS wheels in site-packages.
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)

# Check if nvForest is already available. If so, it is the user's responsibility to ensure that the CMake package is
# also available at build time of the Python nvForest package.
find_package(nvforest "${RAPIDS_VERSION}")
Expand Down
3 changes: 3 additions & 0 deletions python/nvforest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ project(
VERSION "${RAPIDS_VERSION}"
LANGUAGES ${language_list})

# Find C++ libraries from RAPIDS wheels in site-packages.
set_property(GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE)

# ######################################################################################################################
# * User Options --------------------------------------------------------------
option(USE_LIBNVFOREST_WHEEL "Use libnvforest wheel to provide some dependencies" OFF)
Expand Down
Loading