Skip to content

Commit

Permalink
Include tweak number in PCL_VERSION_PLAIN for development versions
Browse files Browse the repository at this point in the history
  • Loading branch information
taketwo committed Jun 29, 2017
1 parent b7fa38b commit 6269c02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/pcl_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,13 @@ macro(DISSECT_VERSION)
PCL_MINOR_VERSION "${PCL_VERSION}")
string(REGEX REPLACE "^[0-9]+\\.[0-9]+\\.([0-9]+).*" "\\1"
PCL_REVISION_VERSION "${PCL_VERSION}")
set(PCL_VERSION_PLAIN "${PCL_MAJOR_VERSION}.${PCL_MINOR_VERSION}.${PCL_REVISION_VERSION}")
if(${PCL_VERSION} MATCHES "^[0-9]+\\.[0-9]+\\.[0-9]+-dev$")
set(PCL_DEV_VERSION 1)
set(PCL_VERSION_PLAIN "${PCL_VERSION_PLAIN}.1")
else()
set(PCL_DEV_VERSION 0)
endif()
set(PCL_VERSION_PLAIN "${PCL_MAJOR_VERSION}.${PCL_MINOR_VERSION}.${PCL_REVISION_VERSION}")
endmacro(DISSECT_VERSION)

###############################################################################
Expand Down

0 comments on commit 6269c02

Please sign in to comment.