From 2381c2e3778f8d187d9579582dc7cde47e620ce0 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Thu, 12 Sep 2024 15:42:44 +0900 Subject: [PATCH] use modern-cmake mechanism for cuda --- .../plugins/SofaDistanceGrid/extensions/CUDA/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/plugins/SofaDistanceGrid/extensions/CUDA/CMakeLists.txt b/applications/plugins/SofaDistanceGrid/extensions/CUDA/CMakeLists.txt index 759fc81b7c5..b5f9f033313 100644 --- a/applications/plugins/SofaDistanceGrid/extensions/CUDA/CMakeLists.txt +++ b/applications/plugins/SofaDistanceGrid/extensions/CUDA/CMakeLists.txt @@ -26,7 +26,8 @@ set(CUDA_SOURCES sofa_find_package(SofaDistanceGrid REQUIRED) sofa_find_package(SofaCUDA REQUIRED) -cuda_add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${CUDA_SOURCES}) +add_library(${PROJECT_NAME} SHARED ${HEADER_FILES} ${SOURCE_FILES} ${CUDA_SOURCES}) + target_link_libraries(${PROJECT_NAME} SofaDistanceGrid) target_link_libraries(${PROJECT_NAME} SofaCUDA)