diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-02-11 15:31:53 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-02-11 15:31:53 (GMT) |
commit | 6ca6613ab8a30da726118b31e1c6fb11c54e6cdd (patch) | |
tree | 930513fcbd0757c18c7942f376cce9a81bb8340f /Source/cmExportFileGenerator.h | |
parent | 9bcc1b21f05a8f522c5154e163942c6d133bb379 (diff) | |
download | CMake-6ca6613ab8a30da726118b31e1c6fb11c54e6cdd.zip CMake-6ca6613ab8a30da726118b31e1c6fb11c54e6cdd.tar.gz CMake-6ca6613ab8a30da726118b31e1c6fb11c54e6cdd.tar.bz2 |
Export: Use the CMAKE_DEVEL_VERSION macro for build-export files.
Move the macro definition to the cmExportBuildFileGenerator.h header
to share it.
Diffstat (limited to 'Source/cmExportFileGenerator.h')
-rw-r--r-- | Source/cmExportFileGenerator.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Source/cmExportFileGenerator.h b/Source/cmExportFileGenerator.h index 1438f4d..8be4bbf 100644 --- a/Source/cmExportFileGenerator.h +++ b/Source/cmExportFileGenerator.h @@ -15,6 +15,21 @@ #include "cmCommand.h" #include "cmGeneratorExpression.h" +#include "cmVersionMacros.h" +#include "cmVersion.h" + +#define STRINGIFY_HELPER(X) #X +#define STRINGIFY(X) STRINGIFY_HELPER(X) + +#define DEVEL_CMAKE_VERSION(maj, min, patch) \ + (CMake_VERSION_ENCODE(maj, min, patch) > \ + CMake_VERSION_ENCODE(CMake_VERSION_MAJOR, CMake_VERSION_MINOR, \ + CMake_VERSION_PATCH) \ + ) ? \ + STRINGIFY(CMake_VERSION_MAJOR) "." STRINGIFY(CMake_VERSION_MINOR) "." \ + STRINGIFY(CMake_VERSION_PATCH) "." STRINGIFY(CMake_VERSION_TWEAK) \ + : #maj "." #min "." #patch + class cmTargetExport; /** \class cmExportFileGenerator |