-
Notifications
You must be signed in to change notification settings - Fork 684
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
PcapPlusPlus Configuration Error in CMake with vcpkg #1356
Comments
Looks like MacOS CI workflows also has the same problem https://github.com/seladb/PcapPlusPlus/actions/runs/8687358735/job/23820713337?pr=1360 |
@kezniklm What is your CMake version in your system? Might be related with this. Looks like runners updated recently and they bumped the CMake version to 3.29.1 actions/runner-images#9652 |
@egecetin |
@clementperon Do you have any idea about this? Probably a bug introduced with CMake 3.29.1. |
Hi, From linux Ubuntu 22.04, cmake version 3.29.2. I can build the PcapPlusPlus example without any issue.
Could you give the output of the PcapPlusPLusConfig.cmake ? I will check the CI |
The output should be in the issue definition. After compiling locally on 3.29.2 it eventually started to work, while in CI, where the cmake is 3.29.1 error persists. |
microsoft/vcpkg#37968 |
Updating CMake in CI to 3.29.2 fixed the issue. |
I've encountered a configuration error related to
PcapPlusPlus
when building my project usingvcpkg
to manage dependencies. The error specifically mentions a problem withPcapPlusPlusConfig.cmake
, indicating that a file or directory referenced by the variablePcapPlusPlus_INCLUDE_DIR
does not exist. This issue has emerged recently, as CI builds were proceeding without problems two days ago.Steps to Reproduce
vcpkg
and integrate it with any project.PcapPlusPlus
along with other dependencies usingvcpkg install
.vcpkg
toolchain file.The following error occurs during the CMake configuration phase:
CMake Error at build/vcpkg_installed/x64-linux/share/pcapplusplus/PcapPlusPlusConfig.cmake:18 (message):
File or directory /include/pcapplusplus referenced by variable
PcapPlusPlus_INCLUDE_DIR does not exist !
Call Stack (most recent call first):
build/vcpkg_installed/x64-linux/share/pcapplusplus/PcapPlusPlusConfig.cmake:38 (set_and_check)
/home/user/vcpkg/scripts/buildsystems/vcpkg.cmake:859 (_find_package)
CMakeLists.txt:13 (find_package)
After commenting out the
set_and_check(PcapPlusPlus_INCLUDE_DIR ${PACKAGE_PREFIX_DIR}/include/pcapplusplus)
in PcapPlusPlusConfig.cmake it works, but It is impractical to comment it out every build.The text was updated successfully, but these errors were encountered: