You are not logged in.
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
Upstream bug in how cmake checks and compares the version. See https://gitlab.kitware.com/cmake/cmake/-/issues/24847
Online