SWDEV-478295 - Link with hiprtc-builtins for sample 23_cmake_hiprtc in static build
Change-Id: I9ccc1310ea2f38d8624103e198b6fc1077712345
Ta zmiana jest zawarta w:
%! (template.HTML=
Ioannis Assiouras)złożyło 2024-08-15 16:37:38 -04:00
1 rodzic
6cf941c830
złożenie
e45cbdfaa1
Plik 1 zmieniony
+5
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Zablokuj użytkownika