From c283b69b62b7c0d71b93e3f9d7753098ba975559 Mon Sep 17 00:00:00 2001 From: arvindcheru <90783369+arvindcheru@users.noreply.github.com> Date: Wed, 5 Mar 2025 10:23:58 -0500 Subject: [PATCH] Move install location of internal papi files to lib/ (#118) Signed-off-by: ArvindCheru [ROCm/rocprofiler-systems commit: c3138e1962eb19282c3927973c77b059e21ba588] --- projects/rocprofiler-systems/cmake/PAPI.cmake | 23 +++++++++++++------ 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/projects/rocprofiler-systems/cmake/PAPI.cmake b/projects/rocprofiler-systems/cmake/PAPI.cmake index 394edd43f9..70ec1e9cff 100644 --- a/projects/rocprofiler-systems/cmake/PAPI.cmake +++ b/projects/rocprofiler-systems/cmake/PAPI.cmake @@ -314,12 +314,21 @@ foreach( file(WRITE "${ROCPROFSYS_PAPI_INSTALL_DIR}/bin/${_UTIL_EXE}3" "${_HL_OUTPUT_WRITER}") set(_UTIL_EXE "${_UTIL_EXE}3") - endif() - install( - PROGRAMS ${ROCPROFSYS_PAPI_INSTALL_DIR}/bin/${_UTIL_EXE} - DESTINATION ${CMAKE_INSTALL_BINDIR} - RENAME ${_UTIL_EXE_INSTALL_NAME} - COMPONENT papi - OPTIONAL) + # python script file install to libexec + install( + PROGRAMS ${ROCPROFSYS_PAPI_INSTALL_DIR}/bin/${_UTIL_EXE} + DESTINATION ${CMAKE_INSTALL_LIBEXECDIR}/${PROJECT_NAME} + RENAME ${_UTIL_EXE_INSTALL_NAME} + COMPONENT papi + OPTIONAL) + else() + # Binary files moved to bin + install( + PROGRAMS ${ROCPROFSYS_PAPI_INSTALL_DIR}/bin/${_UTIL_EXE} + DESTINATION ${CMAKE_INSTALL_LIBDIR}/${PROJECT_NAME} + RENAME ${_UTIL_EXE_INSTALL_NAME} + COMPONENT papi + OPTIONAL) + endif() endforeach()