Don't directly link pthreads

This was already searching for the right threads library, but ignoring
the result.

Change-Id: I10d898245696135c1ef928c7715efce8ec6b939f


[ROCm/hip commit: 253962c9c4]
This commit is contained in:
Matt Arsenault
2020-04-30 13:03:27 -04:00
parent 5a873c1ab4
commit 7877f5000d
+5 -3
View File
@@ -195,9 +195,11 @@ target_link_libraries(device INTERFACE host)
# TODO: we may create host_static and device_static to let app
# link amdhip64_static
target_link_libraries(amdhip64 PRIVATE amdvdi_static pthread dl)
target_link_libraries(amdhip64_static PRIVATE pthread dl)
target_link_libraries(amdhip64_static_temp PRIVATE pthread dl)
# FIXME: Linux convention is to create static library with same base
# filename.
target_link_libraries(amdhip64 PRIVATE amdvdi_static Threads::Threads dl)
target_link_libraries(amdhip64_static PRIVATE Threads::Threads dl)
target_link_libraries(amdhip64_static_temp PRIVATE Threads::Threads dl)
# combine objects of vid and hip into amdhip64_static
add_custom_target(