From 724251f6b6a559e8d824a27143e9d896416f89c7 Mon Sep 17 00:00:00 2001 From: Mike Smith Date: Mon, 3 Mar 2025 14:10:12 +0800 Subject: [PATCH] fix lcub --- src/backends/cuda/lcub/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/backends/cuda/lcub/CMakeLists.txt b/src/backends/cuda/lcub/CMakeLists.txt index 40a09fd45..e26ff6081 100644 --- a/src/backends/cuda/lcub/CMakeLists.txt +++ b/src/backends/cuda/lcub/CMakeLists.txt @@ -10,8 +10,7 @@ endif() file(GLOB_RECURSE DCUB_SOURCES CONFIGURE_DEPENDS "private/dcub/*.cu") add_library(luisa-compute-cuda-ext-dcub SHARED ${DCUB_SOURCES}) target_compile_definitions(luisa-compute-cuda-ext-dcub PRIVATE DCUB_DLL_EXPORTS=1) -target_link_libraries(luisa-compute-cuda-ext-dcub PUBLIC CUDA::cudart) -target_include_directories(luisa-compute-cuda-ext-dcub PRIVATE "${CMAKE_SOURCE_DIR}/include") # -> LuisaCompute/include +target_link_libraries(luisa-compute-cuda-ext-dcub PUBLIC CUDA::cudart luisa-compute-include) set_target_properties(luisa-compute-cuda-ext-dcub PROPERTIES OUTPUT_NAME "lc-cuda-dcub") install(TARGETS luisa-compute-cuda-ext-dcub EXPORT LuisaComputeTargets LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}