Skip to content
Snippets Groups Projects
Commit 8ebd590b authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cpack-deb-ipk'


a17ef574 CPackDeb: Loosen filename requirement to allow for .ipk

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !1093
parents f2cab985 a17ef574
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,8 @@
#
# <PackageName>_<VersionNumber>-<DebianRevisionNumber>_<DebianArchitecture>.deb
#
# Alternatively provided package file name must end with ``.deb`` suffix.
# Alternatively provided package file name must end
# with either ``.deb`` or ``.ipk`` suffix.
#
# .. note::
#
......@@ -977,9 +978,9 @@ function(cpack_deb_prepare_package_vars)
else()
cmake_policy(PUSH)
cmake_policy(SET CMP0010 NEW)
if(NOT CPACK_DEBIAN_FILE_NAME MATCHES ".*\\.deb")
if(NOT CPACK_DEBIAN_FILE_NAME MATCHES ".*\\.(deb|ipk)")
cmake_policy(POP)
message(FATAL_ERROR "'${CPACK_DEBIAN_FILE_NAME}' is not a valid DEB package file name as it must end with '.deb'!")
message(FATAL_ERROR "'${CPACK_DEBIAN_FILE_NAME}' is not a valid DEB package file name as it must end with '.deb' or '.ipk'!")
endif()
cmake_policy(POP)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment