Talk:CMake package guidelines
Appearance
Latest comment: 9 July by Lahwaacz in topic Overriding libexec install directory in template
Overriding libexec install directory in template
The archlinux packaging guidelines states that packages should not use libexec, but usr/lib/$pkgname instead. It's possible to override this path in cmake for packages using GNUInstallDirs with the following cmake option:
-DCMAKE_INSTALL_LIBEXECDIR="lib/$pkgname" \
Perhaps this could be added to the cmake packaging template? Oysstu (talk) 09:22, 9 July 2025 (UTC)
- The template is intended for the common use cases. Fortunately most packages don't need to override the libexec directory as the relevant software does not use it in their cmake files. — Lahwaacz (talk) 12:51, 9 July 2025 (UTC)