Skip to content

Commit 5f73ad2

Browse files
committed
update ET_platform deps
1 parent a6b20e6 commit 5f73ad2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

backends/cuda/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ else()
5858
endif()
5959

6060
# Link against ExecuTorch core libraries
61-
target_link_libraries(cuda_tensor_maker PUBLIC executorch ${CMAKE_DL_LIBS})
61+
target_link_libraries(
62+
cuda_tensor_maker PRIVATE executorch_core ${CMAKE_DL_LIBS}
63+
)
6264
executorch_target_link_options_shared_lib(cuda_tensor_maker)
6365

6466
install(
@@ -84,7 +86,7 @@ target_compile_options(
8486
)
8587

8688
# Link against ExecuTorch core libraries
87-
target_link_libraries(cuda_platform PUBLIC executorch ${CMAKE_DL_LIBS})
89+
target_link_libraries(cuda_platform PRIVATE executorch_core ${CMAKE_DL_LIBS})
8890

8991
install(
9092
TARGETS cuda_platform

0 commit comments

Comments
 (0)