mirror of
https://github.com/google/benchmark.git
synced 2025-02-05 00:30:18 +08:00
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_...
This commit is contained in:
parent
b1041fc3d9
commit
38c27c2cb3
@ -38,7 +38,7 @@ function(get_git_version var)
|
||||
ERROR_QUIET)
|
||||
string(COMPARE NOTEQUAL "${GIT_DIFF_INDEX}" "" GIT_DIRTY)
|
||||
if (${GIT_DIRTY})
|
||||
string(CONCAT GIT_VERSION ${GIT_VERSION} "-dirty")
|
||||
set(GIT_VERSION "${GIT_VERSION}-dirty")
|
||||
endif()
|
||||
message("-- git Version: ${GIT_VERSION}")
|
||||
set(${var} ${GIT_VERSION} PARENT_SCOPE)
|
||||
|
Loading…
Reference in New Issue
Block a user