vcpkg/ports/influxdb-cxx/fix-dllexports.patch
MonicaLiu aaf629c095
[influxdb-cxx] Update to v0.7.1 (#31145)
* update influxdb-cxx

* update version

---------

Co-authored-by: Monica <v-liumonica@microsoft.com>
2023-05-17 08:39:49 -07:00

16 lines
335 B
Diff

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} ~~~")