1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-16 11:09:11 +00:00

Fix: [CMake] remove cpack warning on fedora when lsb_release exists (#10437)

This commit is contained in:
Byoungchan Lee
2023-02-01 16:41:41 +09:00
committed by GitHub
parent 31869501ee
commit 12f9fbcf39

View File

@@ -173,6 +173,10 @@ elseif(UNIX)
set(CPACK_GENERATOR "DEB")
include(PackageDeb)
elseif(LSB_RELEASE_ID STREQUAL "Fedora")
set(PLATFORM "fedora")
set(CPACK_GENERATOR "RPM")
include(PackageRPM)
else()
set(UNSUPPORTED_PLATFORM_NAME "LSB-based Linux distribution '${LSB_RELEASE_ID}'")
endif()