diff --git a/cmake/package_deb.cmake b/cmake/package_deb.cmake index bb99eef92d..3f0cfc837d 100644 --- a/cmake/package_deb.cmake +++ b/cmake/package_deb.cmake @@ -1,6 +1,7 @@ # DEB specific CPack configuration parameters set(CPACK_GENERATOR "${CPACK_GENERATOR};DEB") execute_process(COMMAND lsb_release -cs OUTPUT_VARIABLE DEB_CODENAME OUTPUT_STRIP_TRAILING_WHITESPACE) +string(REGEX REPLACE "_" "-" DEB_CODENAME "${DEB_CODENAME}") execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE DEB_ARCHITECTURE OUTPUT_STRIP_TRAILING_WHITESPACE) set(CPACK_DEB_COMPONENT_INSTALL ON) set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE})