aboutsummaryrefslogtreecommitdiff
path: root/ports/kenlm/fix-boost.patch
diff options
context:
space:
mode:
authorJacob Kahn <jacobkahn1@gmail.com>2020-10-20 11:31:46 -0700
committerGitHub <noreply@github.com>2020-10-20 11:31:46 -0700
commit8ab8add3126b6aeb77f0dbc3e44a7b5ce16ee8e5 (patch)
treeef8867318f4f560a441d08915f0458cae61f583c /ports/kenlm/fix-boost.patch
parent93eed24259c325e8bd1a9b88c864b6b64d24cc16 (diff)
downloadvcpkg-8ab8add3126b6aeb77f0dbc3e44a7b5ce16ee8e5.tar.gz
vcpkg-8ab8add3126b6aeb77f0dbc3e44a7b5ce16ee8e5.zip
[kenlm] New Port (#13692)
Diffstat (limited to 'ports/kenlm/fix-boost.patch')
-rw-r--r--ports/kenlm/fix-boost.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/ports/kenlm/fix-boost.patch b/ports/kenlm/fix-boost.patch
new file mode 100644
index 000000000..3eded1c69
--- /dev/null
+++ b/ports/kenlm/fix-boost.patch
@@ -0,0 +1,12 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index bec81d4..44fd48a 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,6 +1,6 @@
+ cmake_minimum_required(VERSION 3.1)
+
+-if (WIN32)
++if (WIN32 AND BUILD_SHARED_LIBS)
+ set(Boost_USE_STATIC_LIBS OFF)
+ # The auto-linking feature has problems with USE_STATIC_LIBS off, so we use
+ # BOOST_ALL_NO_LIB to turn it off.