CMAKE - Find modules at build time

Change-Id: I9370ef1433579aff1a37f3636050f525638d8658
Signed-off-by: Galantsev, Dmitrii <dmitrii.galantsev@amd.com>


[ROCm/rdc commit: cdf1588974]
This commit is contained in:
Galantsev, Dmitrii
2024-10-10 03:15:04 -05:00
committed by Galantsev, Dmitrii
parent 39687e8d96
commit b0035605ee
3 changed files with 15 additions and 0 deletions
@@ -41,6 +41,11 @@ if(BUILD_PROFILER)
"${ROCM_DIR}/include"
"${ROCM_DIR}/include/hsa")
# let bootstrap find this module at build time
# at install-time the directory structure is a lot simpler
set_property(TARGET ${BOOTSTRAP_LIB} APPEND PROPERTY
BUILD_RPATH "\$ORIGIN/../rdc_modules/${RDC_ROCP_LIB}")
# Set the VERSION and SOVERSION values
set_property(TARGET ${RDC_ROCP_LIB} PROPERTY
SOVERSION "${VERSION_MAJOR}")
@@ -48,6 +48,11 @@ if(BUILD_RUNTIME)
"${SMI_INC_DIR}"
"${ROCM_DIR}/include")
# let bootstrap find this module at build time
# at install-time the directory structure is a lot simpler
set_property(TARGET ${BOOTSTRAP_LIB} APPEND PROPERTY
BUILD_RPATH "\$ORIGIN/../rdc_modules/${RDC_ROCR_LIB}")
# Set the VERSION and SOVERSION values
set_property(TARGET ${RDC_ROCR_LIB} PROPERTY
SOVERSION "${VERSION_MAJOR}")
@@ -44,6 +44,11 @@ if(BUILD_RVS)
"${ROCM_DIR}/include/hsa"
"${ROCM_VALIDATION_SUITE_INCLUDE_DIR}")
# let bootstrap find this module at build time
# at install-time the directory structure is a lot simpler
set_property(TARGET ${BOOTSTRAP_LIB} APPEND PROPERTY
BUILD_RPATH "\$ORIGIN/../rdc_modules/${RDC_RVS_LIB}")
# Set the VERSION and SOVERSION values
set_property(TARGET ${RDC_RVS_LIB} PROPERTY
SOVERSION "${VERSION_MAJOR}")