Skip to content

Conversation

@Conan-Kudo
Copy link
Contributor

@Conan-Kudo Conan-Kudo commented Nov 3, 2025

This ensures that the correct include and library directories are used regardless of operating system target by leveraging the built-in GNUInstallDirs logic for determining the right directory paths.

This also fixes the path for the CMake config module files to use the right location for header-only libraries.

A pc(5) file for pkgconfig is now also created and installed.

@Conan-Kudo Conan-Kudo force-pushed the cmake-gnuinstalldirs branch 3 times, most recently from f15efa8 to 9f39c27 Compare November 3, 2025 17:55
@Conan-Kudo Conan-Kudo changed the title fix: cmake: Use GNUInstallDirs for install paths fix: cmake: Use GNUInstallDirs for install paths and install pc file Nov 3, 2025
This ensures that the correct include and library directories are used
regardless of operating system target by leveraging the built-in
GNUInstallDirs logic for determining the right directory paths.

This also fixes the path for the CMake config module files to use
the right location for header-only libraries.

A pc(5) file for pkgconfig is now also created and installed.
@Conan-Kudo Conan-Kudo force-pushed the cmake-gnuinstalldirs branch from 9f39c27 to aab0883 Compare November 3, 2025 17:59
@Conan-Kudo Conan-Kudo changed the title fix: cmake: Use GNUInstallDirs for install paths and install pc file cmake: Use GNUInstallDirs for install paths and install pc file Nov 3, 2025
@Conan-Kudo
Copy link
Contributor Author

@pantor Could you please review this? This makes inja usable for packaging in Fedora.

@arrowd
Copy link
Contributor

arrowd commented Nov 8, 2025

+1 from FreeBSD packagers. Thanks for working on this, Neal!

Copy link
Owner

@pantor pantor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, thank you!

@pantor pantor merged commit ebb7aeb into pantor:main Nov 9, 2025
13 checks passed
@Conan-Kudo Conan-Kudo deleted the cmake-gnuinstalldirs branch November 9, 2025 12:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants