aboutsummaryrefslogtreecommitdiff
path: root/cmake/proj_config.cmake.in
diff options
context:
space:
mode:
authorChris Mayo <aklhfex@gmail.com>2019-03-21 19:53:37 +0000
committerChris Mayo <aklhfex@gmail.com>2019-03-21 19:53:37 +0000
commitddd333e6bd6f5e033a2b829067910165e64eb0b9 (patch)
treeb64d09c9858e28c685abf7a233d029e29a9cae45 /cmake/proj_config.cmake.in
parent9ead1bfe5afd7e519fe5f83b6603e5147fa91411 (diff)
downloadPROJ-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/proj_config.cmake.in')
-rw-r--r--cmake/proj_config.cmake.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmake/proj_config.cmake.in b/cmake/proj_config.cmake.in
index bbdf3249..caeb0934 100644
--- a/cmake/proj_config.cmake.in
+++ b/cmake/proj_config.cmake.in
@@ -22,6 +22,9 @@
/* Define to 1 if you have the <stdlib.h> header file. */
#cmakedefine HAVE_STDLIB_H 1
+/* Define to 1 if you have the `strerror' function. */
+#cmakedefine HAVE_STRERROR 1
+
/* Define to 1 if you have the <strings.h> header file. */
#cmakedefine HAVE_STRINGS_H 1