Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to conditional protobuf-lite target #56876

Merged
merged 1 commit into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 0 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,6 @@ if(WITH_CORE)

find_package(Protobuf CONFIG)
find_package(Protobuf REQUIRED)
if(Protobuf_VERSION GREATER_EQUAL 4.23)
set(Protobuf_LITE_LIBRARY protobuf::libprotobuf-lite)
endif()

message(STATUS "Found Protobuf: ${Protobuf_LIBRARIES}")
if (NOT Protobuf_PROTOC_EXECUTABLE)
Expand Down
2 changes: 1 addition & 1 deletion src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ target_link_libraries(qgis_core
EXPAT::EXPAT
${SQLITE3_LIBRARY}
${LIBZIP_LIBRARY}
${Protobuf_LITE_LIBRARY}
$<TARGET_NAME_IF_EXISTS:protobuf::libprotobuf-lite>
${ZLIB_LIBRARIES}
${EXIV2_LIBRARY}
PROJ::proj
Expand Down