Skip to content
Snippets Groups Projects
Commit b7172a73 authored by Grégoire Kubler's avatar Grégoire Kubler
Browse files

fix : cudart & cuda libraries are now linked privately to _aidge_backend_cpu

parent 2cc7de11
No related branches found
No related tags found
No related merge requests found
......@@ -110,9 +110,10 @@ endif()
target_link_libraries(${module_name}
PUBLIC
_aidge_core # _ is added because we link the target not the project
CUDA::cudart
CUDA::cublas
PRIVATE
cudnn
CUDA::cudart
)
if( ${ENABLE_ASAN} )
......
......@@ -16,7 +16,14 @@ add_executable(tests${module_name} ${src_files})
target_link_libraries(tests${module_name} PUBLIC ${module_name})
target_link_libraries(tests${module_name} PRIVATE Catch2::Catch2WithMain)
target_link_libraries(tests${module_name}
PRIVATE
Catch2::Catch2WithMain
CUDA::cudart
cudnn
CUDA::cublas
)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment