vcpkg/ports/geogram/fix-windows-dynamic.patch
Fabien Péan 1054567984
[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>
2021-03-29 10:18:25 -07:00

12 lines
367 B
Diff

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