aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/influxdb-cxx/fix-dllexports.patch
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/influxdb-cxx/fix-dllexports.patch')
-rw-r--r--vcpkg/ports/influxdb-cxx/fix-dllexports.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/vcpkg/ports/influxdb-cxx/fix-dllexports.patch b/vcpkg/ports/influxdb-cxx/fix-dllexports.patch
new file mode 100644
index 0000000..59ec8ec
--- /dev/null
+++ b/vcpkg/ports/influxdb-cxx/fix-dllexports.patch
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index df7e7a3..4879802 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -26,6 +26,10 @@ project(influxdb-cxx
+ LANGUAGES CXX
+ )
+
++if (BUILD_SHARED_LIBS)
++ add_definitions(-DInfluxDB_EXPORTS)
++endif()
++
+ message(STATUS "~~~ ${PROJECT_NAME} v${PROJECT_VERSION} ~~~")
+
+