[dlib] Disable shared linkage

This commit is contained in:
Robert Schumacher 2018-03-28 08:55:47 -07:00
parent 398a972357
commit 0e8481c1df
2 changed files with 6 additions and 2 deletions

View File

@ -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++

View File

@ -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