# cpack -G deb not working even though I set maintainer's name

**URL:** <https://discourse.cmake.org/t/cpack-g-deb-not-working-even-though-i-set-maintainers-name/3993>\
**Category:** Code\
**Created:** [August 27, 2021, 5:30pm UTC](https://discourse.cmake.org/t/cpack-g-deb-not-working-even-though-i-set-maintainers-name/3993 "2021-08-27T17:30:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![9d6e13cb300898596d35](https://discourse.cmake.org/user_avatar/discourse.cmake.org/9d6e13cb300898596d35/32/484_2.png) [@9d6e13cb300898596d35](https://discourse.cmake.org/u/9d6e13cb300898596d35)\
**Post date:** [August 27, 2021, 5:30pm UTC](https://discourse.cmake.org/t/cpack-g-deb-not-working-even-though-i-set-maintainers-name/3993/1 "2021-08-27T17:30:58Z")

</div>

– Build files have been written to: /root/dev-learn/build-tools/cmake-tutorial/Tutorial-new/build  
CPack: Create package using DEB  
CPack: Install projects  
CPack: - Run preinstall target for: Tutorial  
CPack: - Install project: Tutorial []  
CPack: Create package  
– CPACK\_DEBIAN\_PACKAGE\_DEPENDS not set, the package will have no dependencies.  
CMake Error at /usr/local/share/cmake-3.16/Modules/Internal/CPack/CPackDeb.cmake:494 (message):  
CPackDeb: Debian package requires a maintainer for a package, set  
CPACK\_PACKAGE\_CONTACT or CPACK\_DEBIAN\_PACKAGE\_MAINTAINER  
Call Stack (most recent call first):  
/usr/local/share/cmake-3.16/Modules/Internal/CPack/CPackDeb.cmake:764 (cpack\_deb\_prepare\_package\_vars)

I later added to my CMakeLists.txt following but still errors out:

include(InstallRequiredSystemLibraries)  
set(CPACK\_RESOURCE\_FILE\_LICENSE “${CMAKE\_CURRENT\_SOURCE\_DIR}/License.txt”)  
set(CPACK\_PACKAGE\_VERSION\_MAJOR “${Tutorial\_VERSION\_MAJOR}”)  
set(CPACK\_PACKAGE\_VERSION\_MINOR “${Tutorial\_VERSION\_MINOR}”)  
set(CPACK\_DEBIAN\_PACKAGE\_MAINTAINER, “GG”)  
set(CPACK\_PACKAGE\_CONTACT, “GG”)  
include(CPack)

---

<div class="post-metadata">

**Author:** ![erk](https://discourse.cmake.org/user_avatar/discourse.cmake.org/erk/32/114_2.png) [@erk](https://discourse.cmake.org/u/erk)\
**Post date:** [August 27, 2021, 5:48pm UTC](https://discourse.cmake.org/t/cpack-g-deb-not-working-even-though-i-set-maintainers-name/3993/2 "2021-08-27T17:48:32Z")

</div>

> [@9d6e13cb300898596d35](#):
>
> set(CPACK\_DEBIAN\_PACKAGE\_MAINTAINER, “GG”)  
> set(CPACK\_PACKAGE\_CONTACT, “GG”)

there is a typo with the extra “comma” between the variable name and the value.

---

<div class="post-metadata">

**Author:** ![9d6e13cb300898596d35](https://discourse.cmake.org/user_avatar/discourse.cmake.org/9d6e13cb300898596d35/32/484_2.png) [@9d6e13cb300898596d35](https://discourse.cmake.org/u/9d6e13cb300898596d35)\
**Post date:** [August 27, 2021, 7:58pm UTC](https://discourse.cmake.org/t/cpack-g-deb-not-working-even-though-i-set-maintainers-name/3993/3 "2021-08-27T19:58:54Z")

</div>

> [@erk](#):
>
> there is a typo with the extra “comma” between the variable name and the value.

Thanks that got it working!!
