From e0607d7165255d2866cdd0a2fb272a1524b53966 Mon Sep 17 00:00:00 2001 From: "Matthew McCormick (thewtex" Date: Tue, 1 Jul 2008 10:40:54 -0500 Subject: [PATCH] build: deal with not-existant .version_stamp Signed-off-by: Julien Danjou --- awesomeConfig.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awesomeConfig.cmake b/awesomeConfig.cmake index 692eb82c..527dd158 100644 --- a/awesomeConfig.cmake +++ b/awesomeConfig.cmake @@ -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()