From a820a7f2fe939d1251712b84d00e9b2643db643f 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 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c4b5906..b941fd1 100644 --- a/CMakeLists.txt +++ b/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 -- 2.40.1