Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
38c27c2c
Commit
38c27c2c
authored
Aug 15, 2014
by
Matt Clarkson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not use CMake CONCAT
CONCAT was added quite late in the CMake release cycles so lets use `set()` instead which has been around _forever_...
parent
b1041fc3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
GetGitVersion.cmake
cmake/GetGitVersion.cmake
+1
-1
No files found.
cmake/GetGitVersion.cmake
View file @
38c27c2c
...
@@ -38,7 +38,7 @@ function(get_git_version var)
...
@@ -38,7 +38,7 @@ function(get_git_version var)
ERROR_QUIET
)
ERROR_QUIET
)
string
(
COMPARE NOTEQUAL
"
${
GIT_DIFF_INDEX
}
"
""
GIT_DIRTY
)
string
(
COMPARE NOTEQUAL
"
${
GIT_DIFF_INDEX
}
"
""
GIT_DIRTY
)
if
(
${
GIT_DIRTY
}
)
if
(
${
GIT_DIRTY
}
)
s
tring
(
CONCAT GIT_VERSION
${
GIT_VERSION
}
"
-dirty"
)
s
et
(
GIT_VERSION
"
${
GIT_VERSION
}
-dirty"
)
endif
()
endif
()
message
(
"-- git Version:
${
GIT_VERSION
}
"
)
message
(
"-- git Version:
${
GIT_VERSION
}
"
)
set
(
${
var
}
${
GIT_VERSION
}
PARENT_SCOPE
)
set
(
${
var
}
${
GIT_VERSION
}
PARENT_SCOPE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment