diff options
| author | myd7349 <myd7349@gmail.com> | 2019-05-27 19:15:06 +0800 |
|---|---|---|
| committer | myd7349 <myd7349@gmail.com> | 2019-05-27 19:15:06 +0800 |
| commit | 8999734b401bb8bac9fa20ce831b2ad2a9a67add (patch) | |
| tree | 3f5cf1d5abbbc4295b556ea6e27882950bdd81f3 /ports/geogram | |
| parent | a7ac12c90afed0a13e3b24d509927d2fca506115 (diff) | |
| parent | 9ffac4d56eed774419fbb628ea89417a6399db58 (diff) | |
| download | vcpkg-8999734b401bb8bac9fa20ce831b2ad2a9a67add.tar.gz vcpkg-8999734b401bb8bac9fa20ce831b2ad2a9a67add.zip | |
Merge branch 'master' into rdkafka-init
Diffstat (limited to 'ports/geogram')
| -rw-r--r-- | ports/geogram/CONTROL | 4 | ||||
| -rw-r--r-- | ports/geogram/portfile.cmake | 24 |
2 files changed, 24 insertions, 4 deletions
diff --git a/ports/geogram/CONTROL b/ports/geogram/CONTROL index 7b19ca9cf..87688018b 100644 --- a/ports/geogram/CONTROL +++ b/ports/geogram/CONTROL @@ -1,7 +1,7 @@ Source: geogram -Version: 1.6.9-2 +Version: 1.6.9-3 Description: Geogram is a programming library of geometric algorithms. -Build-Depends: openblas, clapack +Build-Depends: openblas (!osx), clapack Feature: graphics Description: Build viewers and geogram_gfx library. diff --git a/ports/geogram/portfile.cmake b/ports/geogram/portfile.cmake index 46709f6c3..44f74f107 100644 --- a/ports/geogram/portfile.cmake +++ b/ports/geogram/portfile.cmake @@ -24,10 +24,30 @@ endif() if (VCPKG_LIBRARY_LINKAGE STREQUAL "static") set(VORPALINE_BUILD_DYNAMIC FALSE) - set(VORPALINE_PLATFORM Win-vs-generic) + if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore") + set(VORPALINE_PLATFORM Win-vs-generic) + endif() + if (VCPKG_CMAKE_SYSTEM_NAME MATCHES "Linux") + message("geogram on Linux only supports dynamic library linkage. Building dynamic.") + set(VCPKG_LIBRARY_LINKAGE dynamic) + set(VORPALINE_PLATFORM Linux64-gcc-dynamic ) + endif() + if (VCPKG_CMAKE_SYSTEM_NAME MATCHES "Darwin") + message("geogram on Darwin only supports dynamic library linkage. Building dynamic.") + set(VCPKG_LIBRARY_LINKAGE dynamic) + set(VORPALINE_PLATFORM Darwin-clang-dynamic) + endif() else() set(VORPALINE_BUILD_DYNAMIC TRUE) - set(VORPALINE_PLATFORM Win-vs-dynamic-generic) + if (NOT VCPKG_CMAKE_SYSTEM_NAME OR VCPKG_CMAKE_SYSTEM_NAME MATCHES "WindowsStore") + set(VORPALINE_PLATFORM Win-vs-generic) + endif() + if (VCPKG_CMAKE_SYSTEM_NAME MATCHES "Linux") + set(VORPALINE_PLATFORM Linux64-gcc-dynamic ) + endif() + if (VCPKG_CMAKE_SYSTEM_NAME MATCHES "Darwin") + set(VORPALINE_PLATFORM Darwin-clang-dynamic) + endif() endif() vcpkg_configure_cmake( |
