Agreed, version numbers will never not be set so #define is the
better choice in this case. However this seems like an easy thing
for users to trip-up on, particularly as only #cmakedefine is used
in the configure_file() manual page.
Perhaps an additional example, or an INFO/WARNING section in the
manual to highlight this 'issue'?
On 15/08/2018 13:56, J. Caleb Wherry
I suppose it all depends on if there are
situations where you don’t want those variables set? To me, it
doesn’t make sense to ever not have version numbers set so I
would use #define.