Commit 38c27c2c by Matt Clarkson

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
...@@ -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})
string(CONCAT GIT_VERSION ${GIT_VERSION} "-dirty") set(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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment