[Slackbuilds-users] cmake-template.SlackBuild: LIB_SUFFIX or CMAKE_INSTALL_LIBDIR for specifying the lib directory

an9wer at SDF.ORG an9wer at SDF.ORG
Tue Apr 8 13:34:04 UTC 2025


Hi,

In cmake-template.SlackBuild, the lib directory is specified using 
"-DLIB_SUFFIX=${LIBDIRSUFFIX}":

	https://git.slackbuilds.org/templates/tree/cmake-template.SlackBuild#n121

However, it seems that LIB_SUFFIX is not a standard cmake cache 
variable. Instead, CMAKE_INSTALL_LIBDIR is documented officially:

	https://cmake.org/cmake/help/latest/module/GNUInstallDirs.html

I have noticed some packages, like libgme, only accept LIB_SUFFIX, while 
others, such as librime, only recognize CMAKE_INSTALL_LIBDIR.

I think using both of them would improve compatibility. As evidence, I 
found both are used in Gentoo's cmake.eclass:

	https://github.com/gentoo/gentoo/blob/7d691b86d7c351651aaea129332ccb309d9dd196/eclass/cmake.eclass#L536-L537

-- 
an9wer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmake-template.SlackBuild.patch
Type: text/x-diff
Size: 432 bytes
Desc: not available
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20250408/12f918c0/attachment.bin>


More information about the SlackBuilds-users mailing list