Skip to content

Commit 44d47c1

Browse files
MohamoudAli12thliebig
authored andcommitted
build failed with error 'fatal: No names found, cannot describe anything.' added '--always' flag to resolve the error
1 parent f5e4764 commit 44d47c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ IF(EXISTS ${PROJECT_SOURCE_DIR}/.git )
3535
FIND_PACKAGE(Git)
3636
# Get the latest abbreviated commit hash of the working branch
3737
execute_process(
38-
COMMAND ${GIT_EXECUTABLE} describe --tags
38+
COMMAND ${GIT_EXECUTABLE} describe --tags --always
3939
WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
4040
OUTPUT_VARIABLE GITREV
4141
)

0 commit comments

Comments
 (0)