From 7438ed187cff7e57c60ef5fd4cdeb60921944bc8 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/amdsmi commit: 9a650b1378bdd0575233dfea71bcbc2ea7905dfb] --- projects/amdsmi/rocm_smi/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/projects/amdsmi/rocm_smi/CMakeLists.txt b/projects/amdsmi/rocm_smi/CMakeLists.txt index c594eeb8af..8401dbe858 100755 --- a/projects/amdsmi/rocm_smi/CMakeLists.txt +++ b/projects/amdsmi/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