From 7877f5000d8f4ddb90a038c47011523ce1049bb3 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Thu, 30 Apr 2020 13:03:27 -0400 Subject: [PATCH] Don't directly link pthreads This was already searching for the right threads library, but ignoring the result. Change-Id: I10d898245696135c1ef928c7715efce8ec6b939f [ROCm/hip commit: 253962c9c4b5a8dacd30a3d3836070d0b83e3b3a] --- projects/hip/vdi/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/projects/hip/vdi/CMakeLists.txt b/projects/hip/vdi/CMakeLists.txt index a91d6d064c..5defe45ac1 100644 --- a/projects/hip/vdi/CMakeLists.txt +++ b/projects/hip/vdi/CMakeLists.txt @@ -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(