mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-02 17:49:07 +08:00
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()
|
||
|
{
|