Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add registry file for pkg-config #372

Merged
merged 2 commits into from
Sep 28, 2024
Merged

Add registry file for pkg-config #372

merged 2 commits into from
Sep 28, 2024

Conversation

rherilier
Copy link
Contributor

In the manner of my PR for TaoJSON, here is the one to make PEGTL discoverable by the configuration tool pkg-config.

Copy link
Member

@uilianries uilianries left a comment

Choose a reason for hiding this comment

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

LGTM. Tested locally:

> cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/tmp/install -DPEGTL_BUILD_TESTS=OFF -DPEGTL_BUILD_EXAMPLES=OFF
> cmake --build build --target install 
Install the project...
-- Install configuration: ""
-- Installing: /tmp/install/share/pegtl/cmake/pegtl-config.cmake
-- Installing: /tmp/install/share/pegtl/cmake/pegtl-config-version.cmake
-- Installing: /tmp/install/share/pkgconfig/pegtl.pc
-- Installing: /tmp/install/include
-- Installing: /tmp/install/include/tao
-- Installing: /tmp/install/include/tao/pegtl.hpp
-- Installing: /tmp/install/include/tao/pegtl
...

> PKG_CONFIG_PATH=/tmp/install/share/pkgconfig pkg-config pegtl --cflags
-I/tmp/install/include

@uilianries uilianries merged commit d7b821b into taocpp:main Sep 28, 2024
64 checks passed
@uilianries uilianries self-assigned this Sep 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants