require cmake 3.8 and declare the version into a single place
ClosedPublic

Authored by mgallien on May 25 2019, 2:26 PM.

Details

Summary

to allow simpler management of the version, only declare it in
CMakeLists.txt project command and use that to set it in the code

require the minimal version needed to get c++17

Test Plan

tests are OK

Diff Detail

Repository
R255 Elisa
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
mgallien requested review of this revision.May 25 2019, 2:26 PM
mgallien created this revision.
pino added a subscriber: pino.May 25 2019, 2:33 PM

Instead of reusing config-upnp-qt.h (whose name seems a bit off, considering what that file contains), IMHO it is better to use a separate version header.
You can use the ECMSetupVersion module from ECM for this.

mgallien updated this revision to Diff 58652.May 25 2019, 3:03 PM
  • use ecm_setup_version to set the project version
In D21404#469907, @pino wrote:

Instead of reusing config-upnp-qt.h (whose name seems a bit off, considering what that file contains), IMHO it is better to use a separate version header.
You can use the ECMSetupVersion module from ECM for this.

Thanks a lot for the suggestion. Your help is very valuable.

ngraham accepted this revision.May 26 2019, 3:36 AM
This revision is now accepted and ready to land.May 26 2019, 3:36 AM
This revision was automatically updated to reflect the committed changes.