Commit 494b0325 authored by Allen Winter's avatar Allen Winter

CMakeLists.txt - also remove '-' for messagelib_git_last_change

since the timezone offset can be negative.
parent 5526d36d
......@@ -95,7 +95,7 @@ if(EXISTS "${Messagelib_SOURCE_DIR}/.git")
execute_process(COMMAND ${GIT_EXECUTABLE} log -1 --oneline --format=%ci
WORKING_DIRECTORY ${Messagelib_SOURCE_DIR}
OUTPUT_VARIABLE messagelib_git_last_change)
string(REGEX REPLACE " [0-9:+ ]*\n" "" messagelib_git_last_change "${messagelib_git_last_change}")
string(REGEX REPLACE " [-0-9:+ ]*\n" "" messagelib_git_last_change "${messagelib_git_last_change}")
endif()
endif()
......
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