Skip to content

Commit dc994ef

Browse files
authored
Fix parsing error when finding an existing GMT in macos (#1735)
1 parent 92091bb commit dc994ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deps/build.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ function get_de_libnames()
1212
libgmt = haskey(ENV, "GMT_LIBRARY") ? ENV["GMT_LIBRARY"] : string(chop(read(`gmt --show-library`, String)))
1313

1414
@static Sys.iswindows() ? libgdal = "gdal_w64.dll" : (
15-
Sys.isapple() ? (libgdal = string(split(readlines(pipeline(`otool -L $(libgmt)`, `grep libgdal`))[1])[1])[8:end]) : (
15+
Sys.isapple() ? (libgdal = string(split(readlines(pipeline(`otool -L $(libgmt)`, `grep libgdal`))[1])[1])) : (
1616
Sys.isunix() ? (libgdal = string(split(readlines(pipeline(`ldd $(libgmt)`, `grep libgdal`))[1])[3])) :
1717
error("Don't know how to use GDAL this package in this OS.")
1818
)
1919
)
2020
@static Sys.iswindows() ? libproj = "proj_w64.dll" : (
21-
Sys.isapple() ? (libproj = string(split(readlines(pipeline(`otool -L $(libgdal)`, `grep libproj`))[1])[1])[8:end]) : (
21+
Sys.isapple() ? (libproj = string(split(readlines(pipeline(`otool -L $(libgdal)`, `grep libproj`))[1])[1])) : (
2222
Sys.isunix() ? (libproj = string(split(readlines(pipeline(`ldd $(libgdal)`, `grep libproj`))[1])[3])) :
2323
error("Don't know how to use PROJ4 in this OS.")
2424
)

0 commit comments

Comments
 (0)