rapids_cmake_write_version_file() currently only results in
#define PROJECT_VERSION_MAJOR
#define PROJECT_VERSION_MINOR
#define PROJECT_VERSION_PATCH
but there are a few other "version" related utility macros that it could generate while we are at it:
PROJECT_VERSION (literally just PROJECT_VERSION_MAJOR.PROJECT_VERSION_MINOR.PROJECT_VERSION_PATCH, or some other scheme).
PROJECT_VERSION_GT/LT/EQ: e.g. PROJECT_VERSION_GT(10, 5, 0) evaluates true if current version is strictly greater than 10.5.0, false otherwise.
rapids_cmake_write_version_file()currently only results inbut there are a few other "version" related utility macros that it could generate while we are at it:
PROJECT_VERSION(literally justPROJECT_VERSION_MAJOR.PROJECT_VERSION_MINOR.PROJECT_VERSION_PATCH, or some other scheme).PROJECT_VERSION_GT/LT/EQ: e.g.PROJECT_VERSION_GT(10, 5, 0)evaluates true if current version is strictly greater than 10.5.0, false otherwise.