diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2009-01-27 15:34:14 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2009-01-27 15:34:14 (GMT) |
commit | ef5b9d00a29bc55788c76dedfaa00571522f4ce2 (patch) | |
tree | d36abc14fc848b34d7c43cb6ebe8c9ee09e28e84 /Utilities/Release/release_cmake.cmake | |
parent | 1dee719cdc0fe007235f3105df880cc51b597828 (diff) | |
download | CMake-ef5b9d00a29bc55788c76dedfaa00571522f4ce2.zip CMake-ef5b9d00a29bc55788c76dedfaa00571522f4ce2.tar.gz CMake-ef5b9d00a29bc55788c76dedfaa00571522f4ce2.tar.bz2 |
ENH: change to use CMAKE_CREATE_VERSION from CMAKE_VERSION as CMAKE_VERSION is auto-defined now
Diffstat (limited to 'Utilities/Release/release_cmake.cmake')
-rw-r--r-- | Utilities/Release/release_cmake.cmake | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/Utilities/Release/release_cmake.cmake b/Utilities/Release/release_cmake.cmake index a977d1f..79c5457 100644 --- a/Utilities/Release/release_cmake.cmake +++ b/Utilities/Release/release_cmake.cmake @@ -26,22 +26,22 @@ endif(NOT DEFINED RUN_SHELL) if(NOT DEFINED PROCESSORS) set(PROCESSORS 1) endif(NOT DEFINED PROCESSORS) -if(NOT DEFINED CMAKE_VERSION) - message(FATAL_ERROR "CMAKE_VERSION not defined") -endif(NOT DEFINED CMAKE_VERSION) +if(NOT DEFINED CMAKE_CREATE_VERSION) + message(FATAL_ERROR "CMAKE_CREATE_VERSION not defined") +endif(NOT DEFINED CMAKE_CREATE_VERSION) if(NOT DEFINED CVS_COMMAND) set(CVS_COMMAND cvs) endif(NOT DEFINED CVS_COMMAND) -if("${CMAKE_VERSION}" STREQUAL "CVS") +if("${CMAKE_CREATE_VERSION}" STREQUAL "CVS") set( CMAKE_CHECKOUT "${CVS_COMMAND} -q -z3 -d ${CVSROOT} export -D now ") - set( CMAKE_VERSION "CurrentCVS") -else("${CMAKE_VERSION}" STREQUAL "CVS") - set( CMAKE_CHECKOUT "${CVS_COMMAND} -q -z3 -d ${CVSROOT} export -r ${CMAKE_VERSION} ") -endif("${CMAKE_VERSION}" STREQUAL "CVS") + set( CMAKE_CREATE_VERSION "CurrentCVS") +else("${CMAKE_CREATE_VERSION}" STREQUAL "CVS") + set( CMAKE_CHECKOUT "${CVS_COMMAND} -q -z3 -d ${CVSROOT} export -r ${CMAKE_CREATE_VERSION} ") +endif("${CMAKE_CREATE_VERSION}" STREQUAL "CVS") if(NOT DEFINED FINAL_PATH ) - set(FINAL_PATH ${CMAKE_RELEASE_DIRECTORY}/${CMAKE_VERSION}-build) + set(FINAL_PATH ${CMAKE_RELEASE_DIRECTORY}/${CMAKE_CREATE_VERSION}-build) endif(NOT DEFINED FINAL_PATH ) if(NOT HOST) @@ -51,7 +51,7 @@ if(NOT DEFINED MAKE) message(FATAL_ERROR "MAKE must be specified with -DMAKE=\"make -j2\"") endif(NOT DEFINED MAKE) -message("Creating CMake release ${CMAKE_VERSION} on ${HOST} with parallel = ${PROCESSORS}") +message("Creating CMake release ${CMAKE_CREATE_VERSION} on ${HOST} with parallel = ${PROCESSORS}") # define a macro to run a remote command macro(remote_command comment command) |