Skip to content
Snippets Groups Projects
Commit 2b8d61d3 authored by Dilawar Singh's avatar Dilawar Singh
Browse files

Fixed revision issue.

Conflicts:
	moose-core/CMakeLists.txt
parent 5805bdf3
No related branches found
No related tags found
No related merge requests found
...@@ -11,9 +11,11 @@ endif(COMMAND cmake_policy) ...@@ -11,9 +11,11 @@ endif(COMMAND cmake_policy)
project(MOOSE) project(MOOSE)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
include(CheckCXXCompiler.cmake) include(CheckCXXCompiler.cmake)
include(CheckIncludeFileCXX) include(CheckIncludeFileCXX)
include(FindPkgConfig) include(FindPkgConfig)
include(GetRevision)
# If from command line, version info is not passed, use the git to generate a # If from command line, version info is not passed, use the git to generate a
# version file. If GIT fails, use the previous known version. # version file. If GIT fails, use the previous known version.
...@@ -27,16 +29,18 @@ if( (NOT MOOSE_VERSION) AND GIT_EXEC) ...@@ -27,16 +29,18 @@ if( (NOT MOOSE_VERSION) AND GIT_EXEC)
OUTPUT_VARIABLE MOOSE_VERSION OUTPUT_VARIABLE MOOSE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE
) )
message(STATUS "+ Writing ${MOOSE_VERSION} to ${VERSION_FILE}" ) endif( )
elseif( (NOT MOOSE_VERSION) AND (NOT GIT_EXEC) )
message(STATUS "+ Reading ${VERSION_FILE}" ) # Default to current date.
string(TIMESTAMP MOOSE_VERSION "nightly-%Y%m%d" ) if( (NOT MOOSE_VERSION) )
set(GIT_VERSION_OUTPUT "nightly" ) NOW(TIMESTAMP)
set(MOOSE_VERSION "nightly-${TIMESTAMP}" )
elseif(MOOSE_VERSION) elseif(MOOSE_VERSION)
message(STATUS "+ Using user specified VERSION = ${MOOSE_VERSION}" ) message(STATUS "+ Using user specified VERSION = ${MOOSE_VERSION}" )
else() else()
message(FATAL_ERROR "Could not determine MOOSE_VERSION" ) message(FATAL_ERROR "Could not determine MOOSE_VERSION" )
endif( ) endif( )
add_definitions( -DMOOSE_VERSION="${MOOSE_VERSION}") add_definitions( -DMOOSE_VERSION="${MOOSE_VERSION}")
message( STATUS "MOOSE Version ${MOOSE_VERSION}" ) message( STATUS "MOOSE Version ${MOOSE_VERSION}" )
...@@ -99,9 +103,6 @@ option(WITH_MPI "Enable Openmpi support" OFF) ...@@ -99,9 +103,6 @@ option(WITH_MPI "Enable Openmpi support" OFF)
option(WITH_BOOST "Use boost library instead of GSL" OFF) option(WITH_BOOST "Use boost library instead of GSL" OFF)
option(WITH_GSL "Use gsl-library. Alternative is WITH_BOOST" ON) option(WITH_GSL "Use gsl-library. Alternative is WITH_BOOST" ON)
################################# CMKAE MACROS #################################
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
############################ BUILD CONFIGURATION ################################# ############################ BUILD CONFIGURATION #################################
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment