add interface drm include directory

add interface drm include directory
This commit is contained in:
Afzal Patel authored and Arif, Maisam committed 2025-05-27 12:06:56 -05:00
1 parent 4243e42758
commit f3c6e80fab
2 files changed
+4

No files matched your search

+2
View File
@@ -41,6 +41,8 @@ set(SHARE_INSTALL_PREFIX
# provide git to utilities
find_program (GIT NAMES git)
# sets DRM_INCLUDE_DIRS
pkg_check_modules(DRM REQUIRED libdrm)
## Setup the package version based on git tags.
set(PKG_VERSION_GIT_TAG_PREFIX "rsmi_pkg_ver")
+2
View File
@@ -92,6 +92,8 @@ target_include_directories(${ROCM_SMI_TARGET}
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
)
target_include_directories(${ROCM_SMI_TARGET} INTERFACE ${DRM_INCLUDE_DIRS})
## Set the VERSION and SOVERSION values
set_property(TARGET ${ROCM_SMI_TARGET} PROPERTY
SOVERSION "${VERSION_MAJOR}")