Skip to content

Commit

Permalink
Drop library directories from install to reduce size (#1688)
Browse files Browse the repository at this point in the history
The libraries are added when we include deps via add_subdirectory.
There isn't a simple way to ask CMake to not install them. A clean
way would be to use components, but our cmake is not there at the
moment.
  • Loading branch information
p2004a authored Sep 21, 2024
1 parent 6b0c2cc commit 9594b17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-build/scripts/04_install.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
cd "${BUILD_DIR}"

make install

# Manually remove the lib, include and share directories coming
# from the GNUInstallDirs. Unfortunately it's not possible to
# easily disable in CMake all installation targets exported when
# using add_subdirectory so we drop them from installation manually.
# This is done to heavily reduce the resulting install size.
cd "${INSTALL_DIR}"
rm -rf lib include share

0 comments on commit 9594b17

Please sign in to comment.