libcoap icon indicating copy to clipboard operation
libcoap copied to clipboard

versioning: Make current configure.ac version available in CMakeLists.txt

Open mrdeep1 opened this issue 2 years ago • 3 comments

Create a CMakeLists.txt.in to contain latest versions, which then updates CMakeLists.txt with updated versions etc. which is then distributed.

CMake unfortunately does not handle, for example, 4.3.1rc1 (the rc1 suffix) for the "project (libcoap VERSION xxx)", so this has to end up as 4.3.1

mrdeep1 avatar Jul 28 '22 14:07 mrdeep1

CMake unfortunately does not handle, for example, 4.3.1rc1 (the rc1 suffix)

That is why I just ignored CMake.

obgm avatar Jul 29 '22 07:07 obgm

The big step here is to automate the creation of CMakeLists.txt from configure.ac. Do we really want this?

obgm avatar Jul 29 '22 07:07 obgm

A good question, which is why I hesitated before doing this. We do this for all the coap_config.*.h files with the coap_config.*.h.in templates.

We could go through the manual process of updating the version strings and remove all the coap_config.*.h.in to be consistent here (but also need to watch updating things like 4003000 as well to 40030001).

mrdeep1 avatar Jul 29 '22 08:07 mrdeep1