Skip to content

Commit f6a8c03

Browse files
SamVanheerzpostfacto
authored andcommitted
Rework protobuf dependency to use import library
#233
1 parent db3a9f7 commit f6a8c03

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,8 @@ protobuf_generate_cpp(GNS_COMMON_PROTO_SRCS GNS_COMMON_PROTO_HDRS ${GNS_COMMON_P
170170
protobuf_generate_cpp(GNS_CLIENTLIB_PROTO_SRCS GNS_CLIENTLIB_PROTO_HDRS ${GNS_CLIENTLIB_PROTOS})
171171

172172
function(gns_set_target_protobuf_properties TGT )
173-
target_include_directories(${TGT} PRIVATE
174-
175-
# Only necessary if we're not using protobuf::libprotobuf
176-
# But that's not supported until CMake 3.9
177-
${Protobuf_INCLUDE_DIRS}
178-
)
179-
180173
target_link_libraries(${TGT} PUBLIC
181-
# protobuf::libprotobuf
182-
${PROTOBUF_LIBRARIES}
174+
protobuf::libprotobuf
183175
Threads::Threads
184176
)
185177
endfunction()

0 commit comments

Comments
 (0)