1754b043a3
The explicit RUNPATH addtion has been revoked after the file reorg. Hence the rpath for discovery of the libs has to be taken care by individual binaries Current patch adds the run path for descovery of the libOpenCL.so Signed-off-by: Ashutosh Mishra <ashutosh.mishra@amd.com> Change-Id: Ia3bf9202bea78ecfdb881e40b0eb7a0d4a303ed3
13 wiersze
586 B
CMake
13 wiersze
586 B
CMake
add_executable(clinfo clinfo.cpp)
|
|
|
|
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)
|
|
|
|
set_target_properties(clinfo PROPERTIES INSTALL_RPATH "${CPACK_PACKAGING_INSTALL_PREFIX}/lib")
|
|
|
|
INSTALL(TARGETS clinfo
|
|
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
|