From 8e8c335aa53accd4b20b524fdfa5f62862dbfadc Mon Sep 17 00:00:00 2001 From: Jeremy Newton Date: Thu, 29 Jun 2023 09:34:18 -0400 Subject: [PATCH] Don't install asan license if disabled Change-Id: I8bffe5ec8496ff11e6d66995dd470cddb13f3c0d Signed-off-by: Jeremy Newton [ROCm/ROCR-Runtime commit: 473a66d11536021a17360d7f1a3102871329b670] --- projects/rocr-runtime/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/rocr-runtime/CMakeLists.txt b/projects/rocr-runtime/CMakeLists.txt index c4b5906056..b941fd174a 100644 --- a/projects/rocr-runtime/CMakeLists.txt +++ b/projects/rocr-runtime/CMakeLists.txt @@ -307,7 +307,9 @@ set ( ENABLE_LDCONFIG ON CACHE BOOL "Set library links and caches using ldconfig # Install License file install ( FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_INSTALL_DOCDIR} COMPONENT devel) -install ( FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_INSTALL_DOCDIR}-asan COMPONENT asan) +if ( ENABLE_ASAN_PACKAGING ) + install ( FILES ${CPACK_RESOURCE_FILE_LICENSE} DESTINATION ${CMAKE_INSTALL_DOCDIR}-asan COMPONENT asan) +endif() # Make proper version for appending # Default Value is 99999, setting it first