File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,12 @@ if( (NOT MOOSE_VERSION) AND GIT_EXEC)
2828 OUTPUT_STRIP_TRAILING_WHITESPACE
2929 )
3030 message (STATUS "+ Writing ${MOOSE_VERSION} to ${VERSION_FILE} " )
31- file (WRITE ${VERSION_FILE} ${MOOSE_VERSION} )
3231elseif ( (NOT MOOSE_VERSION) AND (NOT GIT_EXEC) )
3332 message (STATUS "+ Reading ${VERSION_FILE} " )
34- if (EXISTS "${VERSION_FILE} " )
35- file (READ ${VERSION_FILE} MOOSE_VERSION )
36- else ()
37- string (TIMESTAMP MOOSE_VERSION "nightly-%Y%m%d" )
38- set (GIT_VERSION_OUTPUT "nightly" )
39- endif ( )
33+ string (TIMESTAMP MOOSE_VERSION "nightly-%Y%m%d" )
34+ set (GIT_VERSION_OUTPUT "nightly" )
4035elseif (MOOSE_VERSION)
4136 message (STATUS "+ Using user specified VERSION = ${MOOSE_VERSION} " )
42- file (WRITE ${VERSION_FILE} ${MOOSE_VERSION} )
4337else ()
4438 message (FATAL_ERROR "Could not determine MOOSE_VERSION" )
4539endif ( )
You can’t perform that action at this time.
0 commit comments