Skip to content

Commit

Permalink
SWDEV-345870 - Correct install interface for new directory layout
Browse files Browse the repository at this point in the history
Install interface should provide /opt/rocm-ver/include as the include path
Path /opt/rocm-ver/rocm_smi/include should be used only as  part of backward compatibility support

Change-Id: Idc1f663069356c6b1fbd492f45ef4637fc90e4eb
  • Loading branch information
raramakr committed Sep 13, 2022
1 parent 03fab6b commit 9a650b1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion rocm_smi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,14 @@ target_include_directories(${ROCM_SMI_TARGET} PRIVATE
target_include_directories(${ROCM_SMI_TARGET}
PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:${ROCM_SMI}/include>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
)

if(FILE_REORG_BACKWARD_COMPATIBILITY)
target_include_directories(${ROCM_SMI_TARGET}
PUBLIC
"$<INSTALL_INTERFACE:${ROCM_SMI}/include>")
endif()

## Set the VERSION and SOVERSION values
set_property(TARGET ${ROCM_SMI_TARGET} PROPERTY
Expand Down

0 comments on commit 9a650b1

Please sign in to comment.