Skip to content

Commit

Permalink
fix undefined reference
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <[email protected]>
  • Loading branch information
njzjz committed Sep 30, 2023
1 parent a922b7a commit 6811b1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ if(USE_CUDA_TOOLKIT)
add_definitions("-DGOOGLE_CUDA")
add_subdirectory(src/gpu)
set(EXTRA_LIBS ${EXTRA_LIBS} deepmd_op_cuda)
target_link_libraries(${libname} INTERFACE deepmd_dyn_cudart ${EXTRA_LIBS})
target_link_libraries(${libname} PUBLIC deepmd_dyn_cudart)
target_link_libraries(${libname} INTERFACE ${EXTRA_LIBS})
# gpu_cuda.h
target_include_directories(
${libname} PUBLIC $<BUILD_INTERFACE:${CUDAToolkit_INCLUDE_DIRS}>
Expand Down

0 comments on commit 6811b1c

Please sign in to comment.