cmake: do not install to opt
Some checks failed
Package / package (linux/arm64/v8) (push) Failing after 46s
Some checks failed
Package / package (linux/arm64/v8) (push) Failing after 46s
This commit is contained in:
parent
f3cafc241d
commit
78424d187c
3 changed files with 7 additions and 11 deletions
|
@ -2,7 +2,7 @@ FROM debian:bookworm
|
|||
|
||||
RUN apt update && \
|
||||
apt install -y \
|
||||
build-essential cmake git file \
|
||||
build-essential cmake git file tree \
|
||||
libboost-system-dev libboost-thread-dev \
|
||||
libgtest-dev googletest && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
|
|
@ -8,3 +8,8 @@ cmake -B /libcreate/build -S /libcreate -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_F
|
|||
cmake --build /libcreate/build --config Release
|
||||
ctest -C Release --output-on-failure
|
||||
cpack --build /libcreate/build -G DEB
|
||||
|
||||
debs=(/libcreate/_packages/*.deb)
|
||||
cp "${debs[0]}" /tmp/libcreate.deb
|
||||
dpkg-deb -R /tmp/libcreate.deb /tmp/libcreate
|
||||
tree /tmp/libcreate
|
|
@ -13,9 +13,6 @@ set(CPACK_VERBATIM_VARIABLES YES)
|
|||
set(CPACK_PACKAGE_INSTALL_DIRECTORY ${CPACK_PACKAGE_NAME})
|
||||
SET(CPACK_OUTPUT_FILE_PREFIX "${CMAKE_SOURCE_DIR}/_packages")
|
||||
|
||||
# https://unix.stackexchange.com/a/11552/254512
|
||||
set(CPACK_PACKAGING_INSTALL_PREFIX "/opt/some")#/${CMAKE_PROJECT_VERSION}")
|
||||
|
||||
set(CPACK_PACKAGE_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
|
||||
set(CPACK_PACKAGE_VERSION_MINOR ${PROJECT_VERSION_MINOR})
|
||||
set(CPACK_PACKAGE_VERSION_PATCH ${PROJECT_VERSION_PATCH})
|
||||
|
@ -40,11 +37,5 @@ set(
|
|||
# package name for deb. If set, then instead of some-application-0.9.2-Linux.deb
|
||||
# you'll get some-application_0.9.2_amd64.deb (note the underscores too)
|
||||
set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
|
||||
# that is if you want every group to have its own package,
|
||||
# although the same will happen if this is not set (so it defaults to ONE_PER_GROUP)
|
||||
# and CPACK_DEB_COMPONENT_INSTALL is set to YES
|
||||
set(CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE)#ONE_PER_GROUP)
|
||||
# without this you won't be able to pack only specified component
|
||||
set(CPACK_DEB_COMPONENT_INSTALL YES)
|
||||
|
||||
include(CPack)
|
Loading…
Add table
Add a link
Reference in a new issue