Version of the package in sonames as well as pkg-config and CMake's find_package is incorrect.

Steps to reproduce: Install raylib package. Observe the .so files in the package end in 450:

$ ls /usr/lib/libraylib.so*
/usr/lib/libraylib.so  /usr/lib/libraylib.so.4.5.0  /usr/lib/libraylib.so.450

and tools like pkg-config also report an incorrect version:

$ pkg-config --modversion raylib
4.5.0

This problem also means things like find_package(raylib 5.0) in project CMakeLists.txt will also reject the version as packaged.

In the raylib 5.0 release as tagged, Ray forgot to bump the version number in the CMakeLists.txt.

https://github.com/raysan5/raylib/blob/5.0/src/CMakeLists.txt#L2-L4

This seems to be a consistent trend, as the 4.5.0 tag is also versioned incorrectly in the CMakeLists.txt.

https://github.com/raysan5/raylib/blob/4.5.0/src/CMakeLists.txt#L2-L4

I think it is probably too late to do anything for this release, but please double check for the next one. It may be necessary to add patches for the CMakeLists.txt.

I attempted building raylib with invokations like:

cmake .. -DPROJECT_VERSION="6.0.0" -DAPI_VERSION="600" -DBUILD_SHARED_LIBS=On -DBUILD_EXAMPLES=Off

But they didn't work.

Edited by Peter