Skip to content

Commit 4e9aa31

Browse files
author
Dilawar Singh
committed
Not reading version file anymore.
1 parent 315837d commit 4e9aa31

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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})
3231
elseif( (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" )
4035
elseif(MOOSE_VERSION)
4136
message(STATUS "+ Using user specified VERSION = ${MOOSE_VERSION}" )
42-
file(WRITE ${VERSION_FILE} ${MOOSE_VERSION})
4337
else()
4438
message(FATAL_ERROR "Could not determine MOOSE_VERSION" )
4539
endif( )

0 commit comments

Comments
 (0)