From d617e99695a8d889dda8abfb0735b2f57b71f5ba Mon Sep 17 00:00:00 2001 From: cpw <13495049+CPWstatic@users.noreply.github.com> Date: Fri, 17 Sep 2021 13:35:03 +0800 Subject: [PATCH] Fix ubuntu pkg name. (#613) --- cmake/CPackage.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/CPackage.cmake b/cmake/CPackage.cmake index 5842c74d9..3d54c2921 100644 --- a/cmake/CPackage.cmake +++ b/cmake/CPackage.cmake @@ -59,14 +59,15 @@ macro(package to_one name home_page scripts_dir) OUTPUT_STRIP_TRAILING_WHITESPACE ) string(REPLACE "." "" HOST_SYSTEM_VER ${HOST_SYSTEM_VER}) - string(CONCAT HOST_SYSTEM_VER ${HOST_SYSTEM_NAME} ${HOST_SYSTEM_VER}) if (${HOST_SYSTEM_NAME} MATCHES "Ubuntu") + string(CONCAT HOST_SYSTEM_VER "ubuntu" ${HOST_SYSTEM_VER}) # the ubuntu need to modify the architecture name if (${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "x86_64") set(CMAKE_HOST_SYSTEM_PROCESSOR "amd64") endif() # Adapt the Kylin system elseif (${HOST_SYSTEM_NAME} MATCHES "Kylin" AND ${CMAKE_HOST_SYSTEM_PROCESSOR} MATCHES "aarch64") + string(CONCAT HOST_SYSTEM_VER ${HOST_SYSTEM_NAME} ${HOST_SYSTEM_VER}) set(CMAKE_HOST_SYSTEM_PROCESSOR "arm64") endif() elseif (EXISTS "/etc/issue")