Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
build: Add CMake-based build system (6 of N) #15
build: Add CMake-based build system (6 of N) #15
Changes from all commits
b2bea9f
5fc2cee
1934755
d1c319d
f944ccd
2e3721e
2fd303f
cb7dc94
a2c3493
751453f
cb19814
a112470
2d8930e
43123cf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens in the case of
CFLAGS=-isystem foo -I bar
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is all about how CMake handles the output of the
pkg-config --cflags-only-I <package>
command. All-I some_directory
instances are handled fine.For example, in a broken combo of CMake 3.16.6 + pkg-config 0.29.2, the value of the
INTERFACE_INCLUDE_DIRECTORIES
property of the importedPkgConfig::libzmq
target is a list as follows:Compare to:
Therefore, to fix the bug, it is enough to just filter out "-isystem" from the
INTERFACE_INCLUDE_DIRECTORIES
list.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a note explaining what's happening here and what it's working around please? That's not clear to me from the code alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Out of curiosity, where did you get these from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sources:
FindBerkeleyDB.cmake
:)