All: Set default git info to unknown
Jeffrey Pfau jeffrey@endrift.com
Sat, 15 Aug 2015 15:31:42 -0700
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
version.cmake
→
version.cmake
@@ -32,6 +32,16 @@ set(VERSION_STRING ${LIB_VERSION_ABI}-${VERSION_STRING})
endif() endif() +if(NOT GIT_COMMIT) + set(GIT_COMMIT "(unknown)") +endif() +if(NOT GIT_COMMIT_SHORT) + set(GIT_COMMIT_SHORT "(unknown)") +endif() +if(NOT GIT_BRANCH) + set(GIT_BRANCH "(unknown)") +endif() + if(CONFIG_FILE AND OUT_FILE) configure_file("${CONFIG_FILE}" "${OUT_FILE}") endif()