Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
moose
Manage
Activity
Members
Labels
Plan
Issues
9
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sahil Moza
moose
Commits
2b8d61d3
Commit
2b8d61d3
authored
7 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
Fixed revision issue.
Conflicts: moose-core/CMakeLists.txt
parent
5805bdf3
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
moose-core/CMakeLists.txt
+9
-8
9 additions, 8 deletions
moose-core/CMakeLists.txt
with
9 additions
and
8 deletions
moose-core/CMakeLists.txt
+
9
−
8
View file @
2b8d61d3
...
...
@@ -11,9 +11,11 @@ endif(COMMAND cmake_policy)
project
(
MOOSE
)
set
(
CMAKE_MODULE_PATH
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake_modules"
)
include
(
CheckCXXCompiler.cmake
)
include
(
CheckIncludeFileCXX
)
include
(
FindPkgConfig
)
include
(
GetRevision
)
# 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.
...
...
@@ -27,16 +29,18 @@ if( (NOT MOOSE_VERSION) AND GIT_EXEC)
OUTPUT_VARIABLE MOOSE_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message
(
STATUS
"+ Writing
${
MOOSE_VERSION
}
to
${
VERSION_FILE
}
"
)
elseif
(
(
NOT MOOSE_VERSION
)
AND
(
NOT GIT_EXEC
)
)
message
(
STATUS
"+ Reading
${
VERSION_FILE
}
"
)
string
(
TIMESTAMP MOOSE_VERSION
"nightly-%Y%m%d"
)
set
(
GIT_VERSION_OUTPUT
"nightly"
)
endif
(
)
# Default to current date.
if
(
(
NOT MOOSE_VERSION
)
)
NOW
(
TIMESTAMP
)
set
(
MOOSE_VERSION
"nightly-
${
TIMESTAMP
}
"
)
elseif
(
MOOSE_VERSION
)
message
(
STATUS
"+ Using user specified VERSION =
${
MOOSE_VERSION
}
"
)
else
()
message
(
FATAL_ERROR
"Could not determine MOOSE_VERSION"
)
endif
(
)
add_definitions
(
-DMOOSE_VERSION=
"
${
MOOSE_VERSION
}
"
)
message
(
STATUS
"MOOSE Version
${
MOOSE_VERSION
}
"
)
...
...
@@ -99,9 +103,6 @@ option(WITH_MPI "Enable Openmpi support" OFF)
option
(
WITH_BOOST
"Use boost library instead of GSL"
OFF
)
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 #################################
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment