1 # WRF Macro for getting version, this *should* be replaced with a better versioning scheme
2 macro( wrf_get_version WRF_VERSION_FILE )
3 file( STRINGS ${WRF_VERSION_FILE} WRF_VERSION_FILE_OUTPUT )
5 list( POP_FRONT WRF_VERSION_FILE_OUTPUT FIRST_LINE )
6 string( REPLACE " " ";" FIRST_LINE_LIST ${FIRST_LINE} )
7 list( GET FIRST_LINE_LIST -1 WRF_VERSION )
9 set( PROJECT_VERSION ${WRF_VERSION} )
10 message( STATUS "Setting project version to ${PROJECT_VERSION}" )