diff options
| author | Kristian Evers <kristianevers@gmail.com> | 2019-03-22 12:06:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-22 12:06:11 +0100 |
| commit | f8ba1db866bbf02851c80572ad6e0a7d46c249e0 (patch) | |
| tree | 7354902cd9550f0a0621042f149d5b57818ee1c9 /cmake | |
| parent | bf14355080cf7d8cf7e4b3342263ae7f22660e58 (diff) | |
| parent | ddd333e6bd6f5e033a2b829067910165e64eb0b9 (diff) | |
| download | PROJ-f8ba1db866bbf02851c80572ad6e0a7d46c249e0.tar.gz PROJ-f8ba1db866bbf02851c80572ad6e0a7d46c249e0.zip | |
Merge pull request #1336 from cjmayo/strerror
Build: automatically enable system error messages
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/ProjConfig.cmake | 1 | ||||
| -rw-r--r-- | cmake/proj_config.cmake.in | 3 |
2 files changed, 4 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) 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 |
