diff options
| author | Chris Mayo <aklhfex@gmail.com> | 2019-03-21 19:53:37 +0000 |
|---|---|---|
| committer | Chris Mayo <aklhfex@gmail.com> | 2019-03-21 19:53:37 +0000 |
| commit | ddd333e6bd6f5e033a2b829067910165e64eb0b9 (patch) | |
| tree | b64d09c9858e28c685abf7a233d029e29a9cae45 /cmake/ProjConfig.cmake | |
| parent | 9ead1bfe5afd7e519fe5f83b6603e5147fa91411 (diff) | |
| download | PROJ-ddd333e6bd6f5e033a2b829067910165e64eb0b9.tar.gz PROJ-ddd333e6bd6f5e033a2b829067910165e64eb0b9.zip | |
Build: automatically enable system error messages
Define HAVE_STRERROR during configuration.
Before:
$ cs2cs +proj=latlong +to +proj=latlong dummy
<cs2cs>:
Sys errno: 2: <system mess. texts unavail.>
dummy
After:
$ cs2cs +proj=latlong +to +proj=latlong dummy
<cs2cs>:
Sys errno: 2: No such file or directory
dummy
Diffstat (limited to 'cmake/ProjConfig.cmake')
| -rw-r--r-- | cmake/ProjConfig.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/ProjConfig.cmake b/cmake/ProjConfig.cmake index f9593c8d..2243c37d 100644 --- a/cmake/ProjConfig.cmake +++ b/cmake/ProjConfig.cmake @@ -25,6 +25,7 @@ check_include_files(unistd.h HAVE_UNISTD_H) check_include_files("stdlib.h;stdarg.h;string.h;float.h" STDC_HEADERS) check_function_exists(localeconv HAVE_LOCALECONV) +check_function_exists(strerror HAVE_STRERROR) # check libm need on unix check_library_exists(m ceil "" HAVE_LIBM) |
