From 36432be96204b2cce7b3929a7773c07b16bc172b 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 --- hipamd/vdi/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hipamd/vdi/CMakeLists.txt b/hipamd/vdi/CMakeLists.txt index a91d6d064c..5defe45ac1 100644 --- a/hipamd/vdi/CMakeLists.txt +++ b/hipamd/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(