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
5ace57ba
Commit
5ace57ba
authored
7 years ago
by
Dilawar Singh
Browse files
Options
Downloads
Patches
Plain Diff
Cmake changes from chamcham branch. Build for launchpad.
parent
7bef269a
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
+5
-9
5 additions, 9 deletions
moose-core/CMakeLists.txt
with
5 additions
and
9 deletions
moose-core/CMakeLists.txt
+
5
−
9
View file @
5ace57ba
...
...
@@ -28,25 +28,21 @@ if( (NOT MOOSE_VERSION) AND GIT_EXEC)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message
(
STATUS
"+ Writing
${
MOOSE_VERSION
}
to
${
VERSION_FILE
}
"
)
file
(
WRITE
${
VERSION_FILE
}
${
MOOSE_VERSION
}
)
elseif
(
(
NOT MOOSE_VERSION
)
AND
(
NOT GIT_EXEC
)
)
message
(
STATUS
"+ Reading
${
VERSION_FILE
}
"
)
if
(
EXISTS
${
VERSION_FILE
}
)
file
(
READ
${
VERSION_FILE
}
MOOSE_VERSION
)
else
()
string
(
TIMESTAMP MOOSE_VERSION
"nightly-%Y%m%d"
)
set
(
GIT_VERSION_OUTPUT
"nightly"
)
endif
(
)
string
(
TIMESTAMP MOOSE_VERSION
"nightly-%Y%m%d"
)
set
(
GIT_VERSION_OUTPUT
"nightly"
)
elseif
(
MOOSE_VERSION
)
message
(
STATUS
"+ Using user specified VERSION =
${
MOOSE_VERSION
}
"
)
file
(
WRITE
${
VERSION_FILE
}
${
MOOSE_VERSION
}
)
else
()
message
(
FATAL_ERROR
"Could not determine MOOSE_VERSION"
)
endif
(
)
add_definitions
(
-DMOOSE_VERSION=
"
${
MOOSE_VERSION
}
"
)
message
(
STATUS
"MOOSE Version
${
MOOSE_VERSION
}
"
)
# Write VERSION to a file VERSION so that setup.py can use it.
file
(
WRITE
${
VERSION_FILE
}
${
MOOSE_VERSION
}
)
# This snippet is from LLVM project.
# Sanity check our source directory to make sure that we are not trying to
# generate an in-tree build (unless on MSVC_IDE, where it is ok), and to make
...
...
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