mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-18 20:03:02 +08:00
[opencv] Require use of internal tiff, libjpeg, libpng. Partially fixes #81.
This commit is contained in:
parent
17786b865a
commit
39c0c7152f
@ -1,4 +1,4 @@
|
||||
Source: opencv
|
||||
Version: 3.1.0-1
|
||||
Build-Depends: zlib, libpng, libjpeg-turbo
|
||||
Build-Depends: zlib, libpng, libjpeg-turbo, tiff
|
||||
Description: computer vision library
|
||||
|
@ -11,10 +11,15 @@ vcpkg_apply_patches(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PATCHES "${CMAKE_CURRENT_LIST_DIR}/opencv-installation-options.patch"
|
||||
)
|
||||
file(REMOVE_RECURSE ${SOURCE_PATH}/3rdparty/libjpeg ${SOURCE_PATH}/3rdparty/libpng ${SOURCE_PATH}/3rdparty/zlib ${SOURCE_PATH}/3rdparty/libtiff)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
OPTIONS
|
||||
-DBUILD_ZLIB=OFF
|
||||
-DBUILD_TIFF=OFF
|
||||
-DBUILD_JPEG=OFF
|
||||
-DBUILD_PNG=OFF
|
||||
-DINSTALL_CREATE_DISTRIB=ON
|
||||
-DBUILD_opencv_python2=OFF
|
||||
-DBUILD_opencv_python3=OFF
|
||||
|
Loading…
Reference in New Issue
Block a user