I'm trying to build Wireshark under Windows in order to develop a dissector for a protocol.
During the CMake stage, I get the following messages:
``` CMake Error in epan/CMakeLists.txt: Target "epan" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/vcpkg-export-2025.04.09-x64-windows-ws/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:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/vcpkg-export-2025.04.09-x64-windows-ws/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:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/vcpkg-export-2025.04.09-x64-windows-ws/installed/x64-windows/include/glib-2.0"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt: Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/vcpkg-export-2025.04.09-x64-windows-ws/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:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/libgcrypt-bundle-1.11.1-1-x64-mingw-dynamic-ws/include"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt: Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/gnutls-3.8.10-1-x64-mingw-dynamic-ws/include"
which is prefixed in the source directory.
CMake Error in wsutil/CMakeLists.txt: Target "wsutil" INTERFACE_INCLUDE_DIRECTORIES property contains path:
"C:/Users/andy/source/repos/wireshark/wireshark-x64-libs/xxhash-0.8.3-1-x64-windows-ws/installed/x64-windows/include"
which is prefixed in the source directory.
-- Generating done (3.7s) CMake Generate step failed. Build files cannot be regenerated correctly. ```
I'm running the CMake command in c:\users\andy\source\repos\wireshark-build, and the wireshark source is in C:\Users\andy\source\repos\wireshark
Anyone tell me what I'm doing wrong?
Thanks
Andy