diff --git a/CMakeLists.txt b/CMakeLists.txt index 8e39efcad7ddbbbfa61368f488bba9515d736f62..4ac9f70ab14b4176828ac516b57d7df8223b2d42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -83,7 +83,7 @@ if(NOT ${GIT_RESULT}) set(PADDLE_VERSION ${GIT_TAG_NAME}) else() execute_process( - COMMAND ${GIT_EXECUTABLE} log -1 --format=%H + COMMAND ${GIT_EXECUTABLE} log -1 --format=%h WORKING_DIRECTORY ${PROJ_ROOT} OUTPUT_VARIABLE GIT_SHA1 RESULT_VARIABLE GIT_RESULT