aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/openmvs/fix_no_zstd.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/openmvs/fix_no_zstd.patch')
-rw-r--r--vcpkg/ports/openmvs/fix_no_zstd.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/vcpkg/ports/openmvs/fix_no_zstd.patch b/vcpkg/ports/openmvs/fix_no_zstd.patch
new file mode 100644
index 0000000..155670e
--- /dev/null
+++ b/vcpkg/ports/openmvs/fix_no_zstd.patch
@@ -0,0 +1,17 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 39ec359..ee90ae6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -177,10 +177,8 @@ if(Boost_FOUND)
+ LIST(APPEND OpenMVS_DEFINITIONS -D_USE_BOOST)
+ ADD_DEFINITIONS(${Boost_DEFINITIONS})
+ LINK_DIRECTORIES(${Boost_LIBRARY_DIRS})
+- if(NOT MSVC AND DEFINED CMAKE_TOOLCHAIN_FILE)
+- # work around this missing library link in vcpkg
+- LIST(APPEND Boost_LIBRARIES zstd)
+- endif()
++ # work around this missing library link in vcpkg
++ LIST(APPEND Boost_LIBRARIES zstd)
+ SET(_USE_BOOST TRUE)
+ endif()
+