From 438667846a56c723b4583e672eedc3e07d7d9ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Valverde?= Date: Tue, 23 May 2023 19:28:58 +0100 Subject: CMake: Download Npcap/USBPcap using CMake These binaries are required to build an NSIS installer. Download them using CMake instead. This avoids a dependency on win-setup.ps1, that gets in the way using MSYS2. --- packaging/nsis/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'packaging/nsis') diff --git a/packaging/nsis/CMakeLists.txt b/packaging/nsis/CMakeLists.txt index 912bb3d09c..46751f4626 100644 --- a/packaging/nsis/CMakeLists.txt +++ b/packaging/nsis/CMakeLists.txt @@ -320,6 +320,9 @@ macro( ADD_NSIS_PACKAGE_TARGETS ) EXCLUDE_FROM_DEFAULT_BUILD True ) + # Make sure required blobs are available + FetchContent_MakeAvailable(Npcap USBPcap) + # Dump the installer into # ${CMAKE_CURRENT_SOURCE_DIR}/packaging/nsis # Note that executables and DLLs *must* be built separately -- cgit v1.2.3