aboutsummaryrefslogtreecommitdiff
path: root/ports/geogram
diff options
context:
space:
mode:
authorFabien Péan <fabien@pean.pro>2021-03-29 19:18:25 +0200
committerGitHub <noreply@github.com>2021-03-29 10:18:25 -0700
commit105456798402aa5f494ffeb3b19dd0d870656d39 (patch)
tree1f6b7f0afededd5c438ab6f0600cde01709ef6b9 /ports/geogram
parent5eae23f558cdae22bd894c450dbb43d26e916467 (diff)
downloadvcpkg-105456798402aa5f494ffeb3b19dd0d870656d39.tar.gz
vcpkg-105456798402aa5f494ffeb3b19dd0d870656d39.zip
[geogram] Fix windows dynamic build usage (#14962)
* [geogram] Fix windows dynamic build usage * [geogram] Add version db entry Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/geogram')
-rw-r--r--ports/geogram/CONTROL2
-rw-r--r--ports/geogram/fix-windows-dynamic.patch11
-rw-r--r--ports/geogram/portfile.cmake1
3 files changed, 13 insertions, 1 deletions
diff --git a/ports/geogram/CONTROL b/ports/geogram/CONTROL
index 0a17639cc..19bbb144b 100644
--- a/ports/geogram/CONTROL
+++ b/ports/geogram/CONTROL
@@ -1,6 +1,6 @@
Source: geogram
Version: 1.7.5
-Port-Version: 2
+Port-Version: 3
Homepage: https://gforge.inria.fr/projects/geogram/
Description: Geogram is a programming library of geometric algorithms.
Build-Depends: blas, lapack
diff --git a/ports/geogram/fix-windows-dynamic.patch b/ports/geogram/fix-windows-dynamic.patch
new file mode 100644
index 000000000..8df3b906f
--- /dev/null
+++ b/ports/geogram/fix-windows-dynamic.patch
@@ -0,0 +1,11 @@
+diff --git a/src/lib/geogram/CMakeLists.txt b/src/lib/geogram/CMakeLists.txt
+index 49cb2ba..82c2f39 100755
+--- a/src/lib/geogram/CMakeLists.txt
++++ b/src/lib/geogram/CMakeLists.txt
+@@ -62,3 +62,6 @@ if(WIN32)
+ endif()
++if(WIN32 AND VORPALINE_BUILD_DYNAMIC)
++ target_compile_definitions(geogram PUBLIC GEO_DYNAMIC_LIBS)
++endif()
+
+ # Install the library
diff --git a/ports/geogram/portfile.cmake b/ports/geogram/portfile.cmake
index 36f37694f..8618b0412 100644
--- a/ports/geogram/portfile.cmake
+++ b/ports/geogram/portfile.cmake
@@ -13,6 +13,7 @@ vcpkg_extract_source_archive_ex(
REF ${GEOGRAM_VERSION}
PATCHES
fix-cmake-config-and-install.patch
+ fix-windows-dynamic.patch
)
file(COPY ${CURRENT_PORT_DIR}/Config.cmake.in DESTINATION ${SOURCE_PATH}/cmake)