emio icon indicating copy to clipboard operation
emio copied to clipboard

Version not updated in CMakeLists.txt

Open ra-kal opened this issue 10 months ago • 3 comments

In CMakeLists.txt the version set in project does not correspond with the the version of the release:

Release "0.9.0"

project(
        emio
        VERSION 0.2.0
        DESCRIPTION "Character input/output library for embedded systems."
        HOMEPAGE_URL "https://github.com/viatorus/emio"
        LANGUAGES CXX
)

ra-kal avatar Mar 06 '25 08:03 ra-kal

Thank you for the report.

What is your workflow in which this is a problem? Just to understand the process behind it. I will adapt the version soon.

Viatorus avatar Mar 07 '25 13:03 Viatorus

No, no problems at all :-) I'm using the library for almost a year now and never experienced any bugs. Anyway, I decided to update it to the latest released version and when I was looking into the CMakeLists.txt I noticed the version number there. I was then a little bit confused, what version I'm using.

So I think it is a good idea to keep the version numbers in sync, otherwise it can cause confussion.

Thanks for your great work!

ra-kal avatar Mar 10 '25 17:03 ra-kal

I am unsure how to probably fix this issue. I think I have 3 options:

  1. drop the version parameter at all since Git is all we need
  2. update it BEFORE every new release - somewhat strenuous, for something I don't know what it is used for
  3. try to get the version from git tag - but CMake only allows Major.Minor.Patch - how to handle - intermediate versions?

Viatorus avatar Jul 13 '25 21:07 Viatorus