build: deal with not-existant .version_stamp
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
e4db1a3b86
commit
e0607d7165
|
@ -89,7 +89,7 @@ if(EXISTS ${SOURCE_DIR}/.git/HEAD AND GIT_EXECUTABLE)
|
||||||
file(WRITE ${VERSION_STAMP_FILE} ${VERSION})
|
file(WRITE ${VERSION_STAMP_FILE} ${VERSION})
|
||||||
# create a version_stamp target later
|
# create a version_stamp target later
|
||||||
set(BUILD_FROM_GIT TRUE)
|
set(BUILD_FROM_GIT TRUE)
|
||||||
else()
|
elseif( EXISTS ${SOURCE_DIR}/.version_stamp )
|
||||||
# get version from version stamp
|
# get version from version stamp
|
||||||
file(READ ${SOURCE_DIR}/.version_stamp VERSION)
|
file(READ ${SOURCE_DIR}/.version_stamp VERSION)
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue