Skip to content

Commit dbf1a60

Browse files
author
Jeremy Edward Kozdon
committed
Update cmake for when git is not present
1 parent d78d460 commit dbf1a60

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

deps/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ endif(${USE_GIT} EQUAL 1)
142142
if(GIT_DESCRIBE_RESULT EQUAL 0)
143143
file(WRITE ${CMAKE_SOURCE_DIR}/VERSION \"\${GIT_DESCRIBE_VERSION}\")
144144
else(GIT_DESCRIBE_RESULT EQUAL 0)
145-
FILE(READ ${CMAKE_SOURCE_DIR}/VERSION GIT_DESCRIBE_VERSION)
145+
FILE(READ ${CMAKE_SOURCE_DIR}/VERSION_NO_GIT GIT_DESCRIBE_VERSION)
146146
endif(GIT_DESCRIBE_RESULT EQUAL 0)
147147
148148
string(REGEX REPLACE \"v([0-9]*)\\\\.([0-9]*)\\\\.(.*)\"

deps/VERSION_NO_GIT

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v0.7.0

0 commit comments

Comments
 (0)