-
Notifications
You must be signed in to change notification settings - Fork 672
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
Force pcapplusplus prefix in include #1586
base: dev
Are you sure you want to change the base?
Conversation
25220b5
to
4fb8f84
Compare
Nvm, the change of base branch was not updated for me. |
9c37d64
to
03b0a7c
Compare
3540009
to
4f38461
Compare
0c541e0
to
246cb1b
Compare
10f7065
to
5585678
Compare
b836558
to
3589f65
Compare
f1bc5a9
to
67fdf63
Compare
abf7762
to
d74dd69
Compare
d74dd69
to
3c436df
Compare
2810a7e
to
c99ded9
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #1586 +/- ##
==========================================
+ Coverage 83.10% 83.11% +0.01%
==========================================
Files 276 276
Lines 46889 46907 +18
Branches 9365 9587 +222
==========================================
+ Hits 38965 38989 +24
- Misses 7065 7067 +2
+ Partials 859 851 -8
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@clementperon I remember we discussed it, but I forgot why we need this change. Where does homebrew expect the header files to be, and where are they now? |
Homebrew will install the files in "/opt/homebrew/Cellar/pcapplusplus/24.09/include/pcapplusplus/xxx.h" The actual CMake will provide the following include directory
This MR make the proper change to give this directory
We could also keep a fallback compatibility by including both folder for the moment:
But it's proper to use "pcapplusplus/xxxx.h" everywhere in our code no ? |
@clementperon Here are my thoughts:
I'm wondering if it's worth the change, or what are the other options we have 🤔 |
To me the final user should always use
Which is at the moment broken on MacOS and can also break on Linux depends where you install PcapPlusPlus. If we want to keep the compatibilty with
Then we can include both folder in the CMake and it will work without breaking nobody.
I agree, but tests and examples are libraries that have the possibility to be built in the pcapplusplus project.
|
Let's add more people to the discussion to hear their thoughts: @tigercosmos @egecetin @Dimi1010 , what do you think? |
At the moment building a simple example like
CMakeLists.txt
test.cpp
Trig an error on MacOS when PcapPlusplus is installed with brew
This is because the include folder is " -I/opt/homebrew/include/pcapplusplus"
and file is located in /opt/homebrew/include/pcapplusplus/PcapLiveDeviceList.h
Remove the pcapplusplus folder