windowscmakecross-compilingdebcpack

Is it possible to use the CPack DEB generator on Windows to create deb packages?


The documentation for CPack DEB generator says it's Unix only. At the same time there's "Building Debian packages on Windows" paragraph.

I use Windows on my development machine and cross-compile for ARM Debian Linux. The project uses CMake. I'd like to confirm whether it's possible to create deb package in Windows or I should investigate other means.

Thank you!


Solution

  • Tried it myself and it worked out of the box, no Windows specifics required. Used https://decovar.dev/blog/2021/09/23/cmake-cpack-package-deb-apt/ as a reference.