From 9a650b1378bdd0575233dfea71bcbc2ea7905dfb Mon Sep 17 00:00:00 2001 From: Ranjith Ramakrishnan Date: Sun, 14 Aug 2022 23:42:17 -0700 Subject: [PATCH] SWDEV-345870 - Correct install interface for new directory layout 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 --- rocm_smi/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/rocm_smi/CMakeLists.txt b/rocm_smi/CMakeLists.txt index c594eeb8..8401dbe8 100755 --- a/rocm_smi/CMakeLists.txt +++ b/rocm_smi/CMakeLists.txt @@ -84,9 +84,14 @@ target_include_directories(${ROCM_SMI_TARGET} PRIVATE target_include_directories(${ROCM_SMI_TARGET} PUBLIC "$" - "$" + "$" ) +if(FILE_REORG_BACKWARD_COMPATIBILITY) + target_include_directories(${ROCM_SMI_TARGET} + PUBLIC + "$") +endif() ## Set the VERSION and SOVERSION values set_property(TARGET ${ROCM_SMI_TARGET} PROPERTY