Skip to content

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!


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.

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.

2 participants