Skip to content

Commit

Permalink
BUG: Associate package name with the date of the last commit. Fixes S…
Browse files Browse the repository at this point in the history
  • Loading branch information
jcfr committed May 4, 2012
1 parent 9850b4a commit 4ab7800
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions CMakeLists.txt
Expand Up @@ -303,12 +303,6 @@ mark_as_advanced(ADDITIONAL_CXX_FLAGS)
#-----------------------------------------------------------------------------
include(SlicerBlockCXXRequiredFlags)

#-----------------------------------------------------------------------------
# Today date
#-----------------------------------------------------------------------------
include(SlicerFunctionToday)
today(Slicer_BUILDDATE)

#-----------------------------------------------------------------------------
# Slicer version number.
#-----------------------------------------------------------------------------
Expand All @@ -319,6 +313,10 @@ set(Slicer_VERSION_PATCH "0")
#set(Slicer_VERSION_TWEAK 0)
#set(Slicer_VERSION_RC 1)

SlicerMacroExtractRepositoryInfo(VAR_PREFIX Slicer) # Used to configure vtkSlicerVersionConfigure.h.in
string(REGEX REPLACE ".*([0-9][0-9][0-9][0-9]\\-[0-9][0-9]\\-[0-9][0-9]).*" "\\1"
Slicer_BUILDDATE "${Slicer_WC_LAST_CHANGED_DATE}")

if(NOT DEFINED Slicer_VERSION_TWEAK)
# if it's not a release, use the date as a tweak
set(Slicer_VERSION_TWEAK "${Slicer_BUILDDATE}")
Expand Down Expand Up @@ -733,8 +731,6 @@ set(QMRML_EXPORT_HEADER_TEMPLATE "${CMAKE_CURRENT_SOURCE_DIR}/Libs/MRML/Widgets/
# Configure and install headers
# --------------------------------------------------------------------------

SlicerMacroExtractRepositoryInfo(VAR_PREFIX Slicer) # Used to configure vtkSlicerVersionConfigure.h.in

if(NOT Slicer_FORCED_WC_REVISION STREQUAL "")
set(Slicer_WC_REVISION "${Slicer_FORCED_WC_REVISION}")
endif()
Expand Down

0 comments on commit 4ab7800

Please sign in to comment.