diff --git a/wrappers/cpp/CMakeLists.txt b/wrappers/cpp/CMakeLists.txt index af9657294..06979e588 100644 --- a/wrappers/cpp/CMakeLists.txt +++ b/wrappers/cpp/CMakeLists.txt @@ -11,6 +11,7 @@ add_library(linphone++ SHARED tools.cc ${CMAKE_CURRENT_BINARY_DIR}/src/linphone++.cc ) +target_compile_definitions(linphone++ PRIVATE "-DLINPHONECXX_EXPORTS") target_link_libraries(linphone++ PRIVATE ${BCTOOLBOX_CORE_LIBRARIES} ${BELLESIP_LIBRARIES} linphone )