Jump to content
ArchWiki

Talk:CMake package guidelines

From ArchWiki

Overriding libexec install directory in template

Latest comment: 9 July 2025 2 comments2 people in discussion

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) Reply

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) Reply

AltStyle によって変換されたページ (->オリジナル) /