chore: enable cpack as DEB for deepin|uos
The deepin and uos are debian liked OS, but they do define "ID_LIKE". Log: enable cpack as DEB for deepin|uos.
This commit is contained in:
parent
2040df435f
commit
90661c9f13
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|
||||||
# Check if Debian-link
|
# Check if Debian-link
|
||||||
string(REGEX MATCH debian|buntu DEBTYPE "${DISTRO_LIKE}")
|
string(REGEX MATCH debian|buntu DEBTYPE "${DISTRO_LIKE}")
|
||||||
if((NOT ("${DEBTYPE}" STREQUAL "")) OR ("${DISTRO_NAME}" STREQUAL "debian"))
|
string(REGEX MATCH debian|deepin|uos DEBNAME "${DISTRO_NAME}")
|
||||||
|
if((NOT ("${DEBTYPE}" STREQUAL "")) OR (NOT ("${DEBNAME}" STREQUAL "")))
|
||||||
set(CPACK_GENERATOR "DEB")
|
set(CPACK_GENERATOR "DEB")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue