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:
Matt Clarkson 2014-08-15 11:08:33 +01:00
parent b1041fc3d9
commit 38c27c2cb3

View File

@ -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)