cmake generation fails
Summary
Cmake generation fails with multiple error messages like Target "epan" INTERFACE_INCLUDE_DIRECTORIES property contains path [...] which is prefixed in the source directory.
Steps to reproduce
On Windows I typically use:
mkdir wireshark_build
mkdir wireshark
cd wireshark
git clone git@gitlab.com:wireshark/wireshark.git .
CALL cmake -G "Visual Studio 16 2019" -A x64 -B %CD%\..\wireshark_build -Wno-dev -DENABLE_LTO=OFF
What is the current bug behavior?
Cmake generation fails with multiple error messages like:
-- Configuring done
CMake Error in epan/CMakeLists.txt:
Target "epan" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"D:/Dev/signal/wireshark/wireshark-win64-libs/vcpkg-export-20210609-1-win64ws/installed/x64-windows/include/glib-2.0"
which is prefixed in the source directory.
CMake Error in epan/CMakeLists.txt:
Target "epan" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"D:/Dev/signal/wireshark/wireshark-win64-libs/vcpkg-export-20210609-1-win64ws/installed/x64-windows/lib/glib-2.0/include"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt:
Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"D:/Dev/signal/wireshark/wireshark-win64-libs/libgcrypt-1.8.3-win64ws/include"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt:
Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"D:/Dev/signal/wireshark/wireshark-win64-libs/gnutls-3.6.3-1-win64ws/include"
which is prefixed in the source directory.
-- Generating done
CMake Generate step failed. Build files cannot be regenerated correctly.