Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pugs
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
code
pugs
Commits
21211e56
Commit
21211e56
authored
7 years ago
by
Stéphane Del Pino
Browse files
Options
Downloads
Patches
Plain Diff
- Removed cmake-modules dependencies
- Added a tarball source-tree warning on compile
parent
fe17f276
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake/GetPastisGitRevision.cmake
+10
-6
10 additions, 6 deletions
cmake/GetPastisGitRevision.cmake
with
10 additions
and
6 deletions
cmake/GetPastisGitRevision.cmake
+
10
−
6
View file @
21211e56
# --------------- get git revision info ---------------
# --------------- get git revision info ---------------
list
(
APPEND CMAKE_MODULE_PATH
"
${
PASTIS_SOURCE_DIR
}
/cmake/cmake-modules"
)
include
(
GetGitRevisionDescription
)
set
(
HAS_PASTIS_GIT_INFO
"TRUE"
)
set
(
HAS_PASTIS_GIT_INFO
"TRUE"
)
find_package
(
Git QUIET
)
find_package
(
Git QUIET
)
...
@@ -50,12 +47,19 @@ endif()
...
@@ -50,12 +47,19 @@ endif()
string
(
FIND
"
${
PASTIS_GIT_TAG
}
"
"
${
CMAKE_PASTIS_VERSION
}
"
FOUND_VERSION_SUBSTR
)
string
(
FIND
"
${
PASTIS_GIT_TAG
}
"
"
${
CMAKE_PASTIS_VERSION
}
"
FOUND_VERSION_SUBSTR
)
if
(
FOUND_PASTIS_GIT_INFO EQUAL 0
)
if
(
"
${
FOUND_VERSION_SUBSTR
}
"
STREQUAL
"-1"
)
if
(
"
${
FOUND_VERSION_SUBSTR
}
"
STREQUAL
"-1"
)
message
(
""
)
message
(
""
)
message
(
"###### CMake code version
${
CMAKE_PASTIS_VERSION
}
and"
)
message
(
"###### CMake code version
${
CMAKE_PASTIS_VERSION
}
and"
)
message
(
"###### git revision info
${
PASTIS_GIT_TAG
}
do not match!"
)
message
(
"###### git revision info
${
PASTIS_GIT_TAG
}
do not match!"
)
message
(
""
)
message
(
""
)
endif
()
endif
()
else
()
message
(
""
)
message
(
"###### This source tree is not a git repository!"
)
message
(
"###### If you intend to change sources consider to clone a git repository!"
)
message
(
""
)
endif
()
# Generates revision header file candidate
# Generates revision header file candidate
configure_file
(
"
${
PASTIS_SOURCE_DIR
}
/utils/pastis_git_revision.hpp.in"
configure_file
(
"
${
PASTIS_SOURCE_DIR
}
/utils/pastis_git_revision.hpp.in"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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