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