aboutsummaryrefslogtreecommitdiff
path: root/ports/spatialite-tools
diff options
context:
space:
mode:
authorMateusz Loskot <mateusz@loskot.net>2018-05-01 10:14:18 +0200
committerRobert Schumacher <roschuma@microsoft.com>2018-05-01 01:14:18 -0700
commit793019b9cd362aefac06cd7f94d6e6db77d31b69 (patch)
treebe2dde21ac73b2182e40282f799de33836e232d5 /ports/spatialite-tools
parentc4caf29213f54b1786102c1b4dc085b6d7142998 (diff)
downloadvcpkg-793019b9cd362aefac06cd7f94d6e6db77d31b69.tar.gz
vcpkg-793019b9cd362aefac06cd7f94d6e6db77d31b69.zip
[GEOS] Generate debug library names with `d` suffix (#3371)
* [GEOS] Generate debug library names with `d` suffix Currently geos.lib name is used for both, debug and optimised GEOS libraries. This leads to situation when: ``` find_library(GEOS_LIBRARY_DEBUG NAMES geos) find_library(GEOS_LIBRARY_RELEASE NAMES geos) ``` finds the same library for both ``` GEOS_LIBRARY_DEBUG=D:/vcpkg/installed/x64-windows/debug/lib/geos.lib GEOS_LIBRARY_RELEASE=D:/vcpkg/installed/x64-windows/debug/lib/geos.lib ``` This is minimal patch that works around the problem. Next, complete fix should be submitted to GEOS upstream, preferably using exported targets. * [libspatialite] Add missing geos suffixes in static builds
Diffstat (limited to 'ports/spatialite-tools')
-rw-r--r--ports/spatialite-tools/portfile.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/spatialite-tools/portfile.cmake b/ports/spatialite-tools/portfile.cmake
index 6bfd19966..25de070ee 100644
--- a/ports/spatialite-tools/portfile.cmake
+++ b/ports/spatialite-tools/portfile.cmake
@@ -23,7 +23,7 @@ if(VCPKG_CRT_LINKAGE STREQUAL dynamic)
set(CL_FLAGS_DBG "/MDd /Zi")
set(CL_FLAGS_REL "/MD /Ox")
set(GEOS_LIBS_REL "${LDIR}/lib/geos_c.lib")
- set(GEOS_LIBS_DBG "${LDIR}/debug/lib/geos_c.lib")
+ set(GEOS_LIBS_DBG "${LDIR}/debug/lib/geos_cd.lib")
set(LIBXML2_LIBS_REL "${LDIR}/lib/libxml2.lib")
set(LIBXML2_LIBS_DBG "${LDIR}/debug/lib/libxml2.lib")
set(SPATIALITE_LIBS_REL "${LDIR}/lib/spatialite.lib")