SWDEV-497529 - Link with hip::amdhip64 target in 15_static_library/device_functions

Modified target_link_libraries to link with the hip::amdhip64
target instead of directly linking to the amdhip64 library.
This ensures that all sub-dependent libraries that are necessary
for static build are included.

Change-Id: Idf69477708172604ba9c349735d3230ae765923a
이 커밋은 다음에 포함됨:
Ioannis Assiouras
2024-11-09 01:29:58 +00:00
부모 68cc5bdd6e
커밋 ef9558a160
+1 -1
파일 보기
@@ -61,7 +61,7 @@ else()
target_link_libraries(test_device_static PRIVATE HipDevice)
endif()
target_link_libraries(test_device_static PRIVATE -fgpu-rdc amdhip64 amd_comgr)
target_link_libraries(test_device_static PRIVATE -fgpu-rdc hip::amdhip64 amd_comgr)
if(TARGET build_cookbook)
add_dependencies(build_cookbook HipDevice test_device_static)