Skip to content

Commit 4081afa

Browse files
iassiourmangupta
authored andcommitted
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
1 parent 459da65 commit 4081afa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

samples/2_Cookbook/15_static_library/device_functions/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ else()
6161
target_link_libraries(test_device_static PRIVATE HipDevice)
6262
endif()
6363

64-
target_link_libraries(test_device_static PRIVATE -fgpu-rdc amdhip64 amd_comgr)
64+
target_link_libraries(test_device_static PRIVATE -fgpu-rdc hip::amdhip64 amd_comgr)
6565

6666
if(TARGET build_cookbook)
6767
add_dependencies(build_cookbook HipDevice test_device_static)

0 commit comments

Comments
 (0)