build: deal with not-existant .version_stamp

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Matthew McCormick (thewtex 2008-07-01 10:40:54 -05:00 committed by Julien Danjou
parent e4db1a3b86
commit e0607d7165
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ if(EXISTS ${SOURCE_DIR}/.git/HEAD AND GIT_EXECUTABLE)
file(WRITE ${VERSION_STAMP_FILE} ${VERSION})
# create a version_stamp target later
set(BUILD_FROM_GIT TRUE)
else()
elseif( EXISTS ${SOURCE_DIR}/.version_stamp )
# get version from version stamp
file(READ ${SOURCE_DIR}/.version_stamp VERSION)
endif()