Skip to content

Commit 1862031

Browse files
authored
Merge pull request #212 from ROCm/hotfix-rpm-asan
Don't set `CPACK_RPM_MAIN_COMPONENT' for ASAN builds
2 parents a452962 + 0f3cada commit 1862031

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

share/rocmcmakebuildtools/cmake/ROCMCreatePackage.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,9 @@ macro(rocm_set_comp_cpackvar HEADER_ONLY NAME_SUFFIX components)
531531
set(CPACK_DEBIAN_RUNTIME_FILE_NAME "DEB-DEFAULT")
532532
endif()
533533
if (NOT ${HEADER_ONLY} AND BUILD_SHARED_LIBS)
534-
set(CPACK_RPM_MAIN_COMPONENT "runtime")
534+
if (NOT ENABLE_ASAN_PACKAGING)
535+
set(CPACK_RPM_MAIN_COMPONENT "runtime")
536+
endif()
535537
list(APPEND CPACK_COMPONENTS_ALL runtime)
536538
endif()
537539
endif()

0 commit comments

Comments
 (0)