mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
[geogram] enable building on non-win32 platforms (#6366)
This commit is contained in:
parent
db47a79bd9
commit
cdc37cb6be
@ -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.
|
||||
|
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user