File: ProjectSourceVersion.cmake.in

package info (click to toggle)
ants 2.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid, stretch
  • size: 10,656 kB
  • sloc: cpp: 84,137; sh: 11,419; perl: 694; xml: 115; makefile: 74; python: 48
file content (14 lines) | stat: -rw-r--r-- 585 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
macro( _set_if_not_empty var value )
  if( NOT "${value}" STREQUAL "" )
    set( ${var} "${value}" )
  endif()
endmacro()

set( _GIT_VERSION_MAJOR "@_GIT_VERSION_MAJOR@" )
set( _GIT_VERSION_MINOR "@_GIT_VERSION_MINOR@" )
_set_if_not_empty( _GIT_VERSION_PATCH "@_GIT_VERSION_PATCH@" )
_set_if_not_empty( _GIT_VERSION_TWEAK "@_GIT_VERSION_TWEAK@" )
_set_if_not_empty( _GIT_VERSION_RC "@_GIT_VERSION_RC@" )
_set_if_not_empty( _GIT_VERSION_POST "@_GIT_VERSION_POST@" )
_set_if_not_empty( _GIT_VERSION_DEV "@_GIT_VERSION_DEV@" )
_set_if_not_empty( _GIT_VERSION_HASH "@_GIT_VERSION_HASH@" )