junrushao commented on code in PR #360:
URL: https://github.com/apache/tvm-ffi/pull/360#discussion_r2642179178


##########
CMakeLists.txt:
##########
@@ -122,6 +124,14 @@ endif ()
 tvm_ffi_add_msvc_flags(tvm_ffi_objs)
 tvm_ffi_add_target_from_obj(tvm_ffi tvm_ffi_objs)
 
+target_link_libraries(tvm_ffi_shared PRIVATE Threads::Threads)
+target_link_libraries(tvm_ffi_static PRIVATE Threads::Threads)

Review Comment:
   Good point!



##########
CMakeLists.txt:
##########
@@ -122,6 +124,14 @@ endif ()
 tvm_ffi_add_msvc_flags(tvm_ffi_objs)
 tvm_ffi_add_target_from_obj(tvm_ffi tvm_ffi_objs)
 
+target_link_libraries(tvm_ffi_shared PRIVATE Threads::Threads)
+target_link_libraries(tvm_ffi_static PRIVATE Threads::Threads)
+
+if (TVM_FFI_USE_EXTRA_CXX_API AND CMAKE_DL_LIBS)
+  target_link_libraries(tvm_ffi_shared PRIVATE ${CMAKE_DL_LIBS})
+  target_link_libraries(tvm_ffi_static PRIVATE ${CMAKE_DL_LIBS})

Review Comment:
   Good point!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to