Is there a way to customize the generate step trigger?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Is there a way to customize the generate step trigger?

Ulrich Hierl
Hi folks,

my cmake code reads version tags from the underlying git repository,
derives a new version with the help of the existing tags and then sets
that new version to the project() call. However, the cmake generate step
is not triggered when the version tags in the repository change, so the
version that is compiled into the project is not always up-to-date. So I
was wondering if CMake offers the possibility to customize the
up-to-date check of the generate step, to make it automatically re-run
when the tags in the repository are changed?

Thank you for your time.


Powered by

Please keep messages on-topic and check the CMake FAQ at:

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support:
CMake Consulting:
CMake Training Courses:

Visit other Kitware open-source projects at

Follow this link to subscribe/unsubscribe: