diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2021-10-12 10:03:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-12 10:03:27 +0200 |
| commit | 6a877010114b7ccc12d017989500fa5f12f9e39c (patch) | |
| tree | c257d0e1296c2c6a874c750a0139983d6d3e41b3 /src/apps/proj.cpp | |
| parent | a16ead184573933b128e419253c69418212df495 (diff) | |
| parent | a159c44f35e58334646d3c8653acc86665c55cca (diff) | |
| download | PROJ-6a877010114b7ccc12d017989500fa5f12f9e39c.tar.gz PROJ-6a877010114b7ccc12d017989500fa5f12f9e39c.zip | |
Merge pull request #2897 from rouault/fix_2852
CMake build: generate invproj/invgeod binaries (symlinks on Unix, copy otherwise) (fixes #2852)
Diffstat (limited to 'src/apps/proj.cpp')
| -rw-r--r-- | src/apps/proj.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/apps/proj.cpp b/src/apps/proj.cpp index 6368ef2c..f93164e0 100644 --- a/src/apps/proj.cpp +++ b/src/apps/proj.cpp @@ -303,7 +303,8 @@ int main(int argc, char **argv) { if ( (emess_dat.Prog_name = strrchr(*argv,DIR_CHAR)) != nullptr) ++emess_dat.Prog_name; else emess_dat.Prog_name = *argv; - inverse = ! strncmp(emess_dat.Prog_name, "inv", 3); + inverse = strncmp(emess_dat.Prog_name, "inv", 3) == 0 || + strncmp(emess_dat.Prog_name, "lt-inv", 6) == 0; // older libtool have a lt- prefix if (argc <= 1 ) { (void)fprintf(stderr, usage, pj_get_release(), emess_dat.Prog_name); exit (0); |
