diff options
| author | wangli28 <wangli28@beyondsoft.com> | 2019-08-15 06:52:30 +0000 |
|---|---|---|
| committer | wangli28 <wangli28@beyondsoft.com> | 2019-08-15 06:52:32 +0000 |
| commit | 89d8cece0dbbfab416a955289bf29b33b0d106b0 (patch) | |
| tree | c322960a5ffd08b58a6add3ce3893a8c75c22fe4 | |
| parent | edaf3bf91e6b3c33943d5006f6b34fe98b18e1d9 (diff) | |
| download | vcpkg-89d8cece0dbbfab416a955289bf29b33b0d106b0.tar.gz vcpkg-89d8cece0dbbfab416a955289bf29b33b0d106b0.zip | |
[geographiclib] Fix build error on Linux
| -rw-r--r-- | ports/geographiclib/CONTROL | 2 | ||||
| -rw-r--r-- | ports/geographiclib/portfile.cmake | 8 |
2 files changed, 8 insertions, 2 deletions
diff --git a/ports/geographiclib/CONTROL b/ports/geographiclib/CONTROL index 1c4c5a17d..21eeee0c9 100644 --- a/ports/geographiclib/CONTROL +++ b/ports/geographiclib/CONTROL @@ -1,4 +1,4 @@ Source: geographiclib -Version: 1.47-patch1-6 +Version: 1.47-patch1-7 Homepage: https://sourceforge.net/projects/geographiclib/ Description: a small set of C++ classes for performing conversions between geographic, UTM, UPS, MGRS, geocentric, and local cartesian coordinates, for gravity (e.g., EGM2008), geoid height, and geomagnetic field (e.g., WMM2010) calculations, and for solving geodesic problems. diff --git a/ports/geographiclib/portfile.cmake b/ports/geographiclib/portfile.cmake index 8f4a716dc..27c6f9ee7 100644 --- a/ports/geographiclib/portfile.cmake +++ b/ports/geographiclib/portfile.cmake @@ -46,7 +46,13 @@ endif() vcpkg_install_cmake() -vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) +if (VCPKG_TARGET_IS_WINDOWS) + vcpkg_fixup_cmake_targets(CONFIG_PATH cmake) +elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Linux") + vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake) +elseif (VCPKG_CMAKE_SYSTEM_NAME STREQUAL "Darwin") + vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake) +endif() vcpkg_copy_pdbs() file(COPY ${CURRENT_PACKAGES_DIR}/lib/pkgconfig DESTINATION ${CURRENT_PACKAGES_DIR}/share/geographiclib) |
