[libgeotiff] Remove FindPROJ4.cmake from src

The GeoTIFF library ships with its own FindPROJ4.cmake module. This file
interferes with the cmake files that are installed by vcpkg for the PROJ4
package. As a result, the debug version of libgeotiff gets incorrectly
linked to the release version of PROJ4. By removing FindPROJ4.cmake from
the source directory, the vcpkg's .cmake files are used instead,
allowing CMake to find the debug version of PROJ4 when building the
debug version of libgeotiff.
This commit is contained in:
Raynor Vliegendhart 2019-01-23 10:35:53 +01:00
parent 07f1d2f44b
commit b7d5f8cbee
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,4 @@
Source: libgeotiff
Version: 1.4.2-6
Version: 1.4.2-7
Description: Libgeotiff is an open source library normally hosted on top of libtiff for reading, and writing GeoTIFF information tags.
Build-Depends: tiff, proj4, zlib, libjpeg-turbo

View File

@ -21,6 +21,9 @@ vcpkg_extract_source_archive_ex(
0006-Fix-utility-link-error.patch
)
# Delete FindPROJ4.cmake
file(REMOVE ${SOURCE_PATH}/cmake/FindPROJ4.cmake)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA