capstone/CPackConfig.cmake
Andrew 44b0589fa2
Some checks are pending
Run Test / ubuntu-22.04 x64 cmake (push) Waiting to run
Run Test / ubuntu-22.04 x64 ASAN (push) Waiting to run
Run Test / ubuntu-22.04 x64 make (push) Waiting to run
Run Test / windows x64 MSVC 64bit (push) Waiting to run
RELEASE BUILD - PyPI 📦 Distribution / Build wheels on macos-latest (push) Waiting to run
RELEASE BUILD - PyPI 📦 Distribution / Build wheels on ubuntu-latest (push) Waiting to run
RELEASE BUILD - PyPI 📦 Distribution / Build wheels on windows-latest (push) Waiting to run
RELEASE BUILD - PyPI 📦 Distribution / Make SDist (push) Waiting to run
RELEASE BUILD - PyPI 📦 Distribution / publish (push) Blocked by required conditions
Python Package CI / build (macOS-14, 3.12) (push) Waiting to run
Python Package CI / build (macOS-14, 3.8) (push) Waiting to run
Python Package CI / build (ubuntu-24.04, 3.12) (push) Waiting to run
Python Package CI / build (ubuntu-24.04, 3.8) (push) Waiting to run
Python Package CI / build (windows-2022, 3.12) (push) Waiting to run
Python Package CI / build (windows-2022, 3.8) (push) Waiting to run
Create CPack for RPM and DEB packaging (#2596)
2025-01-15 16:07:41 +00:00

14 lines
674 B
CMake

# Used to dynamically set the package file name based on the generator
foreach(generator ${CPACK_GENERATOR})
if("${generator}" STREQUAL "DEB")
set(CPACK_PACKAGE_FILE_NAME ${CPACK_DEBIAN_PACKAGE_FILE_NAME})
elseif("${generator}" STREQUAL "RPM")
set(CPACK_PACKAGE_FILE_NAME ${CPACK_RPM_PACKAGE_FILE_NAME})
elseif("${generator}" STREQUAL "DragNDrop")
set(CPACK_PACKAGE_FILE_NAME ${CPACK_DMG_PACKAGE_FILE_NAME})
else()
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}-unknown")
endif()
message(STATUS "Generating package for ${generator} with file name ${CPACK_PACKAGE_FILE_NAME}")
endforeach()