diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2020-02-11 18:50:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-11 18:50:53 +0100 |
| commit | 595aafef26bc7878cb4d708cb682e4944e5f7fbb (patch) | |
| tree | c862cb9d4206f3be8bc11b9f28855abe43cff018 /cmake | |
| parent | a10b5edfad805b1e09d88b31b953707412440b09 (diff) | |
| parent | 29583196dfae2565a35c7a8759cc8a5640d6a2b1 (diff) | |
| download | PROJ-595aafef26bc7878cb4d708cb682e4944e5f7fbb.tar.gz PROJ-595aafef26bc7878cb4d708cb682e4944e5f7fbb.zip | |
Merge pull request #1921 from rouault/pj_get_relative_share_proj
Use relative directory to locate PROJ resource files.
Diffstat (limited to 'cmake')
| -rw-r--r-- | cmake/ProjConfig.cmake | 8 | ||||
| -rw-r--r-- | cmake/proj_config.cmake.in | 3 |
2 files changed, 8 insertions, 3 deletions
diff --git a/cmake/ProjConfig.cmake b/cmake/ProjConfig.cmake index 661e6e4f..fa085384 100644 --- a/cmake/ProjConfig.cmake +++ b/cmake/ProjConfig.cmake @@ -25,9 +25,11 @@ 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) +if(NOT WIN32) + check_library_exists(dl dladdr "" HAVE_LIBDL) + # check libm need on unix + check_library_exists(m ceil "" HAVE_LIBM) +endif() set(PACKAGE "proj") set(PACKAGE_BUGREPORT "https://github.com/OSGeo/PROJ/issues") diff --git a/cmake/proj_config.cmake.in b/cmake/proj_config.cmake.in index d8385ce9..ddb24347 100644 --- a/cmake/proj_config.cmake.in +++ b/cmake/proj_config.cmake.in @@ -4,6 +4,9 @@ /* Define to 1 if you have the <inttypes.h> header file. */ #cmakedefine HAVE_INTTYPES_H 1 +/* Define to 1 if you have the `dl' library (-ldl). */ +#cmakedefine HAVE_LIBDL 1 + /* Define to 1 if you have the `m' library (-lm). */ #cmakedefine HAVE_LIBM 1 |
