-
Notifications
You must be signed in to change notification settings - Fork 282
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_1516_include_path #1565
fix_1516_include_path #1565
Conversation
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.
I left a comment indicating why I think we do not need this change. But if you prove me wrong (give me some steps so that I can reproduce the problem) I will double-check.
@@ -79,6 +79,8 @@ if( EXPAT_FOUND ) | |||
exiv2-xmp | |||
${EXPAT_LIBRARIES} | |||
) | |||
target_include_directories(geotag PRIVATE ${CMAKE_BINARY_DIR}) # exv_conf.h |
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.
Hi Robin, I think these two lines are not needed.
We are including the ${CMAKE_BINARY_DIR}
globally for all the project targets at CMakeLists.txt:78
.
The ${CMAKE_SOURCE_DIR}/include
directory is also propagated when we add the dependency of each sample target to the library exiv2:
- On
samples/CMakeLists.txt:128
we are adding the dependency to the exiv2 target. - On
src/CMakeLists.txt:150-154
we indicated the directoryes which are propagated when some target depends on exiv2.
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.
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.
oh I see, I'll try to reproduce it on my side ... It should see first the headers specified in the project rather than something you have in /usr/local/inclde
I am not able to reproduce this problem on Ubuntu 21.04. Here's what I tried:
Or is this only a macOS problem? |
35b4749
to
c82c4d0
Compare
Codecov Report
@@ Coverage Diff @@
## main #1565 +/- ##
=======================================
Coverage 60.78% 60.78%
=======================================
Files 96 96
Lines 18881 18881
Branches 9494 9494
=======================================
Hits 11476 11476
Misses 5115 5115
Partials 2290 2290 Continue to review full report at Codecov.
|
@clanmills: All the checks are passing, so I think this is fine to merge. Should it be back-ported to 0.27-maintenance? |
@Mergifyio backport 0.27-maintenance |
Command
|
fix_1516_include_path (backport #1565)
See #1516.