Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/andreicherniaev/cpack_outside_of_build_folder
- Owner: AndreiCherniaev
- License: apache-2.0
- Created: 2023-11-27T06:07:18.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-29T13:04:32.000Z (10 months ago)
- Last Synced: 2024-02-29T14:28:30.173Z (10 months ago)
- Topics: cpack, deb
- Language: CMake
- Homepage: https://stackoverflow.com/questions/77554809/cpack-b-build-doesnt-works
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 specifiedCorrect 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
```