Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/andreicherniaev/cpack_outside_of_build_folder


https://github.com/andreicherniaev/cpack_outside_of_build_folder

cpack deb

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

Use this repo to reproduce my steps for cpack https://stackoverflow.com/questions/77554809/cpack-b-build-fails-in-parent-directory
## Clone and build
```
git clone https://github.com/AndreiCherniaev/cpack_outside_of_build_folder
cd cpack_outside_of_build_folder
cmake -S src/ -B build/ -DCMAKE_BUILD_TYPE=Release --fresh
cmake --build build/ --parallel
```
## Make deb packet
Incorrect way
```
cpack -B build/ --trace --verbose
```
In my case I get
CPack Error: CPack generator not specified

Correct way
```
cpack --config build/CPackConfig.cmake -B build/
```
## Install deb
```
sudo dpkg -i build/cpack_test1-0.1.1-Linux.deb
```
## Remove deb
```
sudo dpkg -r cpack_test1
```