mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
Export: Use the CMAKE_DEVEL_VERSION macro for build-export files.
Move the macro definition to the cmExportBuildFileGenerator.h header to share it.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user