Enable CPack
- Vorherrschende Sprache
- C++
- Sterne
- 2.2k
- Forks
- 1.2k
- Ø Merge
- 4 T. 11 Std.
- Gemergte PRs (30 T.)
- 13
Beschreibung
In our project, we use the following local patch:
```
$ cat cpack.diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 83024b94a..1945cc145 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -169,6 +169,13 @@ endif()
add_sdks()
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "AWS C++ SDK")
+SET(CPACK_PACKAGE_VENDOR "Amazon")
+SET(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}")
+SET(CPACK_GENERATOR "RPM;DEB")
+SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Package fairy")
+INCLUDE(CPack)
+
# for user friendly cmake usage
include(setup_cmake_find_module)
```
After this, I can
`$ cd ; make; cpack -G RPM`
on a RedHat-like system or
`$ cd ; make; cpack -G DEB`
on a Debian-like system, to create an installable package file.
It would be nice to have this by default, with proper values for the CMake variables, of course.
Beitragsleitfaden
Rechercherichtung
Beginne in CMakeLists.txt und prüfe den cpack.diff-Patch zusammen mit den vorhandenen Projekt- und Versionseinstellungen. Überprüfe die passenden CPack-Werte für das AWS C++ SDK und führe anschließend in einem Build-Verzeichnis make gefolgt von cpack -G RPM und cpack -G DEB aus; erledigt ist die Aufgabe, wenn beide Befehle auf ihren jeweiligen Systemen installierbare Pakete erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- cmake, cpp
- Bereich
- build-system, release
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 38/100