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

Fix examples/CMakeLists.txt #6282

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Fix examples/CMakeLists.txt #6282

wants to merge 2 commits into from

Conversation

thehans
Copy link

@thehans thehans commented Apr 20, 2022

This fixes issue #6241.

examples/CMakeListst.txt has been made independent of the rest of libgit2's build.
This is done by making use of pkg-config, since a libgit2.pc file is provided during installation.

Source files have been listed explicitly, as file(GLOB ...) is discouraged for setting sources.

Note We do not recommend using GLOB to collect a list of source files from your source tree. If no CMakeLists.txt file changes when a source is added or removed then the generated build system cannot know when to ask CMake to regenerate. ...

Some build instructions have also been added to the examples readme.

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.

None yet

1 participant