There was a comment in the cmake script that suggested this, and it is
already used elsewhere in the cmake code.
Change-Id: Ic63c52510d37b864f2f39c8bc2f3806783405cc2
# if git executable exists and it's compatible version
# build the development version string
-# this should at some point become VERSION_LESS
-if(EXISTS "${GIT_EXECUTABLE}" AND NOT GIT_VERSION STRLESS "1.5.3")
- # refresh git index
+if(EXISTS "${GIT_EXECUTABLE}" AND NOT GIT_VERSION VERSION_LESS "1.5.3")
+ # refresh git index
execute_process(COMMAND ${GIT_EXECUTABLE} update-index -q --refresh
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
TIMEOUT 5