aboutsummaryrefslogtreecommitdiffstats
path: root/host/cmake/vcpkg/uhd-x64-windows-static-md.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'host/cmake/vcpkg/uhd-x64-windows-static-md.cmake')
-rw-r--r--host/cmake/vcpkg/uhd-x64-windows-static-md.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/host/cmake/vcpkg/uhd-x64-windows-static-md.cmake b/host/cmake/vcpkg/uhd-x64-windows-static-md.cmake
new file mode 100644
index 000000000..ef577045d
--- /dev/null
+++ b/host/cmake/vcpkg/uhd-x64-windows-static-md.cmake
@@ -0,0 +1,14 @@
+set(VCPKG_TARGET_ARCHITECTURE x64)
+set(VCPKG_CRT_LINKAGE dynamic)
+set(VCPKG_LIBRARY_LINKAGE static)
+# uhd dynamic links for boost-test and libusb.
+# The other boost dependencies are static.
+# This maintains historical compatibility
+# with previous binaries.
+if (PORT STREQUAL boost-test)
+ set(VCPKG_LIBRARY_LINKAGE dynamic)
+endif()
+
+if (PORT STREQUAL libusb)
+ set(VCPKG_LIBRARY_LINKAGE dynamic)
+endif()