mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 20:38:59 +08:00
f0b32c558a
* Provide geos-config, and fix dynamic builds on Unix * x-add-version * Fix debug suffix handling * Update git-tree * Don't build benchmarks * Revise pc file and geos-config handling Fixup pc files. Add -lgeos to Libs.private to satisfy common usage requirement (already present in geos-config). Install executable geos-config into tools. Rewrite geos-config relocatability as patch. * Port to non-deprecated cmake functions * Add usage * Update git-tree
17 lines
403 B
Diff
17 lines
403 B
Diff
diff --git a/tools/geos-config.cmake b/tools/geos-config.cmake
|
|
index 6730e215..4c546b5c 100644
|
|
--- a/tools/geos-config.cmake
|
|
+++ b/tools/geos-config.cmake
|
|
@@ -1,7 +1,9 @@
|
|
#!/bin/sh
|
|
|
|
-prefix=@ESCAPED_INSTALL_PREFIX@
|
|
-libdir=${prefix}/lib
|
|
+DIRNAME=$(dirname $0)
|
|
+TOOLS=$(dirname $DIRNAME)
|
|
+prefix=$(CDPATH= cd -- "${DIRNAME%/tools/geos/*}" && pwd -P)
|
|
+libdir=${prefix}${TOOLS##*/geos}/lib
|
|
|
|
usage()
|
|
{
|