Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

cmake: output cpptoml.pc for pkg-config discoverability #124

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

colemickens
Copy link

I'm packaging wireplumber for NixOS (nixpkgs), and it uses this library. With this change, meson is able to just discover cpptoml via typical pkg-config mechanisms. I'm going to carry this patch for now.

Thanks!

@@ -43,6 +43,11 @@ target_include_directories(cpptoml INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)
Copy link

Choose a reason for hiding this comment

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

While at it, we might want to use GNUInstallDirs for this so that CMAKE_INSTALL_INCLUDEDIR is respected, see https://github.com/jtojnar/cmake-snips#hardcoding-the-installation-paths.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants