diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index 3a42e44401..8e3302f991 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -125,15 +125,19 @@ add_library(kvikio::kvikio ALIAS kvikio) target_include_directories( kvikio - PUBLIC "$" "${CUDAToolkit_INCLUDE_DIRS}" - "${cuFile_INCLUDE_DIRS}" + PUBLIC "$" INTERFACE "$" ) # Notice, we do not link to cuda or cufile since KvikIO opens them manually using `dlopen()`. target_link_libraries( kvikio - PUBLIC Threads::Threads BS::thread_pool ${CMAKE_DL_LIBS} $ + PUBLIC Threads::Threads + BS::thread_pool + ${CMAKE_DL_LIBS} + $ + $> + $> PRIVATE $ )