diff options
author | Brad King <brad.king@kitware.com> | 2019-07-23 20:41:29 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-07-29 15:25:43 (GMT) |
commit | ecdf38aa36cfcc897e585ba05fd6f6e738bb5157 (patch) | |
tree | 9bd4380d4a444b5e8303c43bfdc38debaa2db385 /Source/CMakeVersionCompute.cmake | |
parent | 8cf4aec5acc2a3a10abbbbbde17c18d96a97e139 (diff) | |
download | CMake-ecdf38aa36cfcc897e585ba05fd6f6e738bb5157.zip CMake-ecdf38aa36cfcc897e585ba05fd6f6e738bb5157.tar.gz CMake-ecdf38aa36cfcc897e585ba05fd6f6e738bb5157.tar.bz2 |
CMakeVersion: Move computation logic to main script
Diffstat (limited to 'Source/CMakeVersionCompute.cmake')
-rw-r--r-- | Source/CMakeVersionCompute.cmake | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/Source/CMakeVersionCompute.cmake b/Source/CMakeVersionCompute.cmake deleted file mode 100644 index 136851c..0000000 --- a/Source/CMakeVersionCompute.cmake +++ /dev/null @@ -1,29 +0,0 @@ -# Load version number components. -include(${CMake_SOURCE_DIR}/Source/CMakeVersion.cmake) - -# Releases define a small patch level. -if("${CMake_VERSION_PATCH}" VERSION_LESS 20000000) - set(CMake_VERSION_IS_DIRTY 0) - set(CMake_VERSION_IS_RELEASE 1) - set(CMake_VERSION_SOURCE "") -else() - set(CMake_VERSION_IS_DIRTY 0) # may be set to 1 by CMakeVersionSource - set(CMake_VERSION_IS_RELEASE 0) - include(${CMake_SOURCE_DIR}/Source/CMakeVersionSource.cmake) -endif() - -# Compute the full version string. -set(CMake_VERSION ${CMake_VERSION_MAJOR}.${CMake_VERSION_MINOR}.${CMake_VERSION_PATCH}) -if(CMake_VERSION_SOURCE) - set(CMake_VERSION_SUFFIX "${CMake_VERSION_SOURCE}") -elseif(DEFINED CMake_VERSION_RC) - set(CMake_VERSION_SUFFIX "rc${CMake_VERSION_RC}") -else() - set(CMake_VERSION_SUFFIX "") -endif() -if(CMake_VERSION_SUFFIX) - set(CMake_VERSION ${CMake_VERSION}-${CMake_VERSION_SUFFIX}) -endif() -if(CMake_VERSION_IS_DIRTY) - set(CMake_VERSION ${CMake_VERSION}-dirty) -endif() |