Skip to content

Commit c7dc9d7

Browse files
committed
Fix protobuf lib name
1 parent 76668fe commit c7dc9d7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ endforeach()
230230
# set PROTOBUF_ROOT to force include/libs path
231231
if(PROTOBUF_ROOT)
232232
set(Protobuf_INCLUDE_DIR "${PROTOBUF_ROOT}/include")
233-
set(Protobuf_LIBRARY "${PROTOBUF_ROOT}/lib/libprotobuf.a")
233+
set(Protobuf_LIBRARY "${PROTOBUF_ROOT}/lib/libprotobuf${CMAKE_STATIC_LIBRARY_SUFFIX}")
234234
endif()
235235
find_package(Protobuf MODULE 3.1.0 REQUIRED)
236236
message("-- Found Protobuf: ${Protobuf_VERSION}")

0 commit comments

Comments
 (0)