aboutsummaryrefslogtreecommitdiff
path: root/ports/theia
diff options
context:
space:
mode:
Diffstat (limited to 'ports/theia')
-rw-r--r--ports/theia/CONTROL2
-rw-r--r--ports/theia/portfile.cmake8
2 files changed, 4 insertions, 6 deletions
diff --git a/ports/theia/CONTROL b/ports/theia/CONTROL
index 83d6c2c53..7cfd81e60 100644
--- a/ports/theia/CONTROL
+++ b/ports/theia/CONTROL
@@ -1,4 +1,4 @@
Source: theia
-Version: 0.7-d15154a-3
+Version: 0.7-d15154a-4
Build-Depends: flann, cereal, ceres[suitesparse] (!x86&!uwp&!arm&!linux&!osx), openimageio, glew, freeglut
Description: An open source library for multiview geometry and structure from motion
diff --git a/ports/theia/portfile.cmake b/ports/theia/portfile.cmake
index b2e61fae1..18f8490b1 100644
--- a/ports/theia/portfile.cmake
+++ b/ports/theia/portfile.cmake
@@ -1,13 +1,11 @@
-if (VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
- message(STATUS "Warning: Dynamic building not supported yet. Building static.")
- set(VCPKG_LIBRARY_LINKAGE static)
-endif()
+include(vcpkg_common_functions)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
if(VCPKG_TARGET_ARCHIECTURE STREQUAL "x86")
message(FATAL_ERROR "theia requires ceres[suitesparse] which depends on suitesparse which depends on openblas which is unavailable on x86.")
endif()
-include(vcpkg_common_functions)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH