|
|
@ -19,8 +19,11 @@ macro( tde_set_project_version )
|
|
|
|
|
|
|
|
|
|
|
|
unset( VERSION )
|
|
|
|
unset( VERSION )
|
|
|
|
|
|
|
|
|
|
|
|
file( STRINGS ${CMAKE_SOURCE_DIR}/.tdescminfo VERSION_STRING REGEX "^Version:.+$" )
|
|
|
|
if( EXISTS ${CMAKE_SOURCE_DIR}/.tdescminfo )
|
|
|
|
string( REGEX REPLACE "^Version: (R[0-9]+\.[0-9]+\.[0-9]+.*)$" "\\1" VERSION "${VERSION_STRING}" )
|
|
|
|
file( STRINGS ${CMAKE_SOURCE_DIR}/.tdescminfo VERSION_STRING REGEX "^Version:.+$" )
|
|
|
|
|
|
|
|
string( REGEX REPLACE "^Version: (R[0-9]+\.[0-9]+\.[0-9]+.*)$" "\\1" VERSION "${VERSION_STRING}" )
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
if( NOT VERSION )
|
|
|
|
if( NOT VERSION )
|
|
|
|
set( VERSION "${DEFAULT_VERSION}" )
|
|
|
|
set( VERSION "${DEFAULT_VERSION}" )
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|