mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 05:59:07 +08:00
[dlib] add more granularity in features (#11195)
* [dlib] add more feature selection * [dlib] replace custom with check_features * [dlib] bump version in CONTROL
This commit is contained in:
parent
147f02caff
commit
c985d753ce
@ -1,9 +1,18 @@
|
||||
Source: dlib
|
||||
Version: 19.19
|
||||
Build-Depends: libjpeg-turbo, libpng, sqlite3, fftw3, openblas (!osx), clapack (!osx)
|
||||
Version: 19.19-1
|
||||
Build-Depends: libjpeg-turbo, libpng, openblas (!osx), clapack (!osx)
|
||||
Homepage: https://github.com/davisking/dlib
|
||||
Description: Modern C++ toolkit containing machine learning algorithms and tools for creating complex software in C++
|
||||
Default-Features: fftw3, sqlite3
|
||||
|
||||
Feature: cuda
|
||||
Build-Depends: cuda
|
||||
Description: CUDA support for dlib
|
||||
|
||||
Feature: fftw3
|
||||
Build-Depends: fftw3
|
||||
Description: fftw3 support for dlib
|
||||
|
||||
Feature: sqlite3
|
||||
Build-Depends: sqlite3
|
||||
Description: sqlite3 support for dlib
|
||||
|
@ -21,22 +21,21 @@ file(READ "${SOURCE_PATH}/dlib/CMakeLists.txt" DLIB_CMAKE)
|
||||
string(REPLACE "PNG_LIBRARY" "PNG_LIBRARIES" DLIB_CMAKE "${DLIB_CMAKE}")
|
||||
file(WRITE "${SOURCE_PATH}/dlib/CMakeLists.txt" "${DLIB_CMAKE}")
|
||||
|
||||
set(WITH_CUDA OFF)
|
||||
if("cuda" IN_LIST FEATURES)
|
||||
set(WITH_CUDA ON)
|
||||
endif()
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
"sqlite3" DLIB_LINK_WITH_SQLITE3
|
||||
"fftw3" DLIB_USE_FFTW
|
||||
"cuda" DLIB_USE_CUDA
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DDLIB_LINK_WITH_SQLITE3=ON
|
||||
-DDLIB_USE_FFTW=ON
|
||||
${FEATURE_OPTIONS}
|
||||
-DDLIB_PNG_SUPPORT=ON
|
||||
-DDLIB_JPEG_SUPPORT=ON
|
||||
-DDLIB_USE_BLAS=ON
|
||||
-DDLIB_USE_LAPACK=ON
|
||||
-DDLIB_USE_CUDA=${WITH_CUDA}
|
||||
-DDLIB_GIF_SUPPORT=OFF
|
||||
-DDLIB_USE_MKL_FFT=OFF
|
||||
-DCMAKE_DEBUG_POSTFIX=d
|
||||
|
Loading…
Reference in New Issue
Block a user