You are not logged in.

#1 2023-07-16 12:55:07

jronald
Member
Registered: 2022-05-09
Posts: 105

[SOLVED] warning when find_package(protobuf ...)

CMakeLists.txt

cmake_minimum_required(VERSION 3.12)
project(test_cmake LANGUAGES CXX)

find_package(Protobuf REQUIRED)
$ makedir build && cd build
$ cmake ..
...
CMake Warning at /usr/share/cmake/Modules/FindProtobuf.cmake:524 (message):
  Protobuf compiler version 23.4 doesn't match library version 4.23.4
Call Stack (most recent call first):
  CMakeLists.txt:4 (find_package)


-- Found Protobuf: /usr/lib/libprotobuf.so (found version "4.23.4") 
-- Configuring done (0.5s)
-- Generating done (0.0s)
...

Last edited by jronald (2023-07-16 16:07:10)

Offline

#2 2023-07-16 13:13:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,197

Re: [SOLVED] warning when find_package(protobuf ...)

Upstream bug in how cmake checks and compares the version. See https://gitlab.kitware.com/cmake/cmake/-/issues/24847

Online

Board footer

Powered by FluxBB