diff --git a/projects/rocjpeg/CMakeLists.txt b/projects/rocjpeg/CMakeLists.txt index da3ff53e58..38e07c03d1 100644 --- a/projects/rocjpeg/CMakeLists.txt +++ b/projects/rocjpeg/CMakeLists.txt @@ -181,6 +181,13 @@ if(HIP_FOUND AND Libva_FOUND) set_target_properties(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX) set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${PROJECT_VERSION} SOVERSION ${PROJECT_VERSION_MAJOR}) + # DRM + find_path(AMDGPU_DRM_INCLUDE_DIRS libdrm/amdgpu.h + PATHS /opt/amdgpu/include /usr/include /usr/ /usr/local/include + NO_DEFAULT_PATH + ) + target_include_directories(${PROJECT_NAME} PRIVATE ${AMDGPU_DRM_INCLUDE_DIRS}) + # rocprofiler if(rocprofiler-register_FOUND) string(REPLACE "." ";" VERSION_LIST ${VERSION}) @@ -438,4 +445,4 @@ else() if(NOT Libva_FOUND) message(FATAL_ERROR "-- ERROR!: libva Not Found - please install libva-amdgpu-dev(DEBIAN)/libva-amdgpu-devel(RPM) package!") endif() -endif() \ No newline at end of file +endif()