Merge pull request #532 from arirubinstein/master

Force git to return something if tags aren't found
This commit is contained in:
Teddy Reed 2014-12-09 10:12:19 -08:00
commit c26c3a6dfa

View File

@ -88,7 +88,7 @@ endif()
# Generate version from git # Generate version from git
execute_process( execute_process(
COMMAND git describe --tags HEAD COMMAND git describe --tags HEAD --always
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
OUTPUT_VARIABLE OSQUERY_BUILD_VERSION OUTPUT_VARIABLE OSQUERY_BUILD_VERSION
OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_STRIP_TRAILING_WHITESPACE