Skip to content

Commit

Permalink
SWDEV-478295 - Link with hiprtc-builtins for sample 23_cmake_hiprtc i…
Browse files Browse the repository at this point in the history
…n static build

Change-Id: I9ccc1310ea2f38d8624103e198b6fc1077712345
  • Loading branch information
iassiour authored and rakesroy committed Aug 9, 2024
1 parent b41991f commit b2fdb19
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion samples/2_Cookbook/23_cmake_hiprtc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@ endif()
add_executable(test ${EXCLUDE_OPTION} saxpy.cpp)

# Link with HIPRTC
target_link_libraries(test hiprtc::hiprtc)
target_link_libraries(test hiprtc)
# Link with HIP
target_link_libraries(test hip::device)

if(NOT BUILD_SHARED_LIBS)
target_link_libraries(test hiprtc-builtins)
endif()

target_include_directories(test PRIVATE ../../common)

if(TARGET build_cookbook)
Expand Down

0 comments on commit b2fdb19

Please sign in to comment.