diff options
author | Brad King <brad.king@kitware.com> | 2014-02-10 19:52:59 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-02-10 20:32:32 (GMT) |
commit | d2059d25114b53c1e7531704b3e955c6853a355e (patch) | |
tree | 36e288b55188ca301d08da6694ed7cdbdf612050 /Source/cmLocalGenerator.h | |
parent | 28805109bcdea33933e889801a065fd1484b0547 (diff) | |
download | CMake-d2059d25114b53c1e7531704b3e955c6853a355e.zip CMake-d2059d25114b53c1e7531704b3e955c6853a355e.tar.gz CMake-d2059d25114b53c1e7531704b3e955c6853a355e.tar.bz2 |
cmVersion: Fix CMake_VERSION_ENCODE for date in patch level
Use a uint64_t to store encoded version numbers so we have plenty of
bits available. Encode with room for up to 1000 minor releases between
major releases and to encode dates until the year 10000 in the patch
level. This is necessary because CMake development versions prior to
release 2.8.0 used the date in the patch level, and this practice may be
restored after the 3.0 release.
Diffstat (limited to 'Source/cmLocalGenerator.h')
-rw-r--r-- | Source/cmLocalGenerator.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h index ad662d5..9764813 100644 --- a/Source/cmLocalGenerator.h +++ b/Source/cmLocalGenerator.h @@ -321,7 +321,7 @@ public: * * and is monotonically increasing with the CMake version. */ - unsigned int GetBackwardsCompatibility(); + cmIML_INT_uint64_t GetBackwardsCompatibility(); /** * Test whether compatibility is set to a given version or lower. @@ -460,7 +460,7 @@ protected: bool RelativePathsConfigured; bool PathConversionsSetup; - unsigned int BackwardsCompatibility; + cmIML_INT_uint64_t BackwardsCompatibility; bool BackwardsCompatibilityFinal; private: std::string ConvertToOutputForExistingCommon(const char* remote, |