SWDEV-302875 - OpenCL build failure

clinfo should rely on OpenCL interface, headere file and library only

Change-Id: I8e09aa73b55f1a28c2e4403f52740803d0338c12


[ROCm/clr commit: 19ca123460]
Este commit está contenido en:
Alex Xie committed 2021-09-16 22:16:06 -04:00
1 padre cea605e632
commit 99cd3788c4
1 file changed
+5 -1
+5 -1
Ver fichero
@@ -1,6 +1,10 @@
add_executable(clinfo clinfo.cpp)
target_link_libraries(clinfo OpenCL amdocl)
target_compile_definitions(clinfo PRIVATE CL_TARGET_OPENCL_VERSION=220 HAVE_CL2_HPP)
target_include_directories(clinfo PRIVATE "../../khronos/headers/opencl2.2/CL" "../../khronos/headers/opencl2.2/CL/.." "../../khronos/headers/opencl2.2/CL/../.." "../../khronos/headers/opencl2.2/CL/../../.." "../../khronos/headers/opencl2.2/CL/../../../..")
target_link_libraries(clinfo OpenCL)
INSTALL(TARGETS clinfo
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})