From 529c6ee151a900b96eafa95808f8d727d605d527 Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Wed, 18 Jun 2025 15:33:47 -0400 Subject: [PATCH] Don't install asan docs if disabled Signed-off-by: Jeremy Newton --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index a3e01093e0..d136f2a111 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -269,12 +269,14 @@ install( COMPONENT dev) set(CPACK_RPM_PACKAGE_LICENSE "MIT") +if(ENABLE_ASAN_PACKAGING) # install license file in share/doc/amd_smi-asan folder install( FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/doc/${AMD_SMI}-asan RENAME LICENSE.txt COMPONENT asan) +endif() # docs are installed into different share directory from tests and examples install( FILES ${CPACK_RESOURCE_FILE_LICENSE}