Skip to content

Commit 6a0cae1

Browse files
committed
Add definitions for protobuf dll
1 parent 6d04b45 commit 6a0cae1

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

cmake/protobuf.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ macro(configure_protobuf)
44
option(protobuf_BUILD_EXAMPLES "" OFF)
55
option(protobuf_BUILD_SHARED_LIBS "" ON)
66
option(protobuf_BUILD_PROTOC_BINARIES "" ON)
7+
add_definitions(-DPROTOBUF_USE_DLLS)
78
add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/protobuf/cmake)
89
add_executable(protobuf::protoc ALIAS protoc)
910
add_library(protobuf::libprotobuf ALIAS libprotobuf)

0 commit comments

Comments
 (0)