only use rocm_install if we build the tools (#316)

This commit is contained in:
Yiltan authored and GitHub committed 2025-11-12 10:58:49 -05:00
1 parent e1a7e20b1b
commit 73786e203e
1 file changed
+6 -4
+6 -4
View File
@@ -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