aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-03-28 08:55:47 -0700
committerRobert Schumacher <roschuma@microsoft.com>2018-03-28 08:55:47 -0700
commit0e8481c1dff484f2be1149a4911b8425c0d2e956 (patch)
treebb04a3e3fa64b21670ee8f8f3200aa83011a4f14
parent398a972357d059a8d27adb657a33da6cf2a52450 (diff)
downloadvcpkg-0e8481c1dff484f2be1149a4911b8425c0d2e956.tar.gz
vcpkg-0e8481c1dff484f2be1149a4911b8425c0d2e956.zip
[dlib] Disable shared linkage
-rw-r--r--ports/dlib/CONTROL2
-rw-r--r--ports/dlib/portfile.cmake6
2 files changed, 6 insertions, 2 deletions
diff --git a/ports/dlib/CONTROL b/ports/dlib/CONTROL
index 6863fa130..c4d5fe905 100644
--- a/ports/dlib/CONTROL
+++ b/ports/dlib/CONTROL
@@ -1,5 +1,5 @@
Source: dlib
-Version: 19.10
+Version: 19.10-1
Build-Depends: libjpeg-turbo, libpng, sqlite3, fftw3, openblas, clapack
Description: Modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++
diff --git a/ports/dlib/portfile.cmake b/ports/dlib/portfile.cmake
index ba3cb3ec4..da77c9374 100644
--- a/ports/dlib/portfile.cmake
+++ b/ports/dlib/portfile.cmake
@@ -1,5 +1,10 @@
include(vcpkg_common_functions)
+if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
+ message("dlib only supports static linkage")
+ set(VCPKG_LIBRARY_LINKAGE "static")
+endif()
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO davisking/dlib
@@ -35,7 +40,6 @@ vcpkg_configure_cmake(
-DDLIB_USE_CUDA=${WITH_CUDA}
-DDLIB_GIF_SUPPORT=OFF
-DDLIB_USE_MKL_FFT=OFF
- -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE
OPTIONS_DEBUG
-DDLIB_ENABLE_ASSERTS=ON
#-DDLIB_ENABLE_STACK_TRACE=ON