From 73786e203efe026b06727f993a823cff5f956e09 Mon Sep 17 00:00:00 2001 From: Yiltan Date: Wed, 12 Nov 2025 10:58:49 -0500 Subject: [PATCH] only use rocm_install if we build the tools (#316) --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88d2341dce..eaf2ed65f0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -233,10 +233,12 @@ if (NOT BUILD_TESTS_ONLY) DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/rocshmem ) - rocm_install( - PROGRAMS "${CMAKE_BINARY_DIR}/src/tools/rocshmem_info" - DESTINATION ${CMAKE_INSTALL_BINDIR} - ) + if (BUILD_TOOLS) + rocm_install( + PROGRAMS "${CMAKE_BINARY_DIR}/src/tools/rocshmem_info" + DESTINATION ${CMAKE_INSTALL_BINDIR} + ) + endif() rocm_package_add_dependencies( DEPENDS