Skip to content

Commit

Permalink
Git release versioning (#163)
Browse files Browse the repository at this point in the history
* corrected versions to fit release versioning

* fixed comments
  • Loading branch information
Kjell Hedström authored Mar 29, 2017
1 parent 6e77118 commit 66a3d5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CPackLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ SET(MAJOR_VERSION 1)
IF (NOT DEFINED ${VERSION})
MESSAGE("Extracting git software version")
execute_process(COMMAND bash "-c" "git rev-list --branches HEAD | wc -l | tr -d ' ' | tr -d '\n'" OUTPUT_VARIABLE GIT_VERSION)
SET(MINOR_VERSION ${GIT_VERSION})
SET(BUILD_NUMBER 0)
SET(MINOR_VERSION 2)
SET(BUILD_NUMBER ${GIT_VERSION})
SET(VERSION ${MAJOR_VERSION}.${MINOR_VERSION}.${BUILD_NUMBER})
ENDIF()
MESSAGE("Software Version: ${VERSION}")
Expand Down
3 changes: 3 additions & 0 deletions cmake/G3LOGConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@
#
# ``G3LOG_INCLUDE_DIRS``
# where to find g3log.hpp, etc.
#
# ``G3LOG_LIBRARIES``
# the libraries to link against to use libg3logger.
#
# that includes libg3logger library files.
# ``G3LOG_FOUND``
#
# If false, do not try to use G3LOG.
include(FindPackageHandleStandardArgs)
find_path(G3LOG_INCLUDE_DIR g3log/g3log.hpp)
Expand Down

0 comments on commit 66a3d5e

Please sign in to comment.