--- a/cmake/CreateGitVersionHeader.cmake
+++ b/cmake/CreateGitVersionHeader.cmake
@@ -32,10 +32,10 @@ macro( create_git_version_header _git_src_path )
set( _Git_SAVED_LC_ALL "$ENV{LC_ALL}" )
set( ENV{LC_ALL} C )
- # Use `git describe --dirty` to create the KiCad version string.
+ # Use `git describe` to create the KiCad version string.
execute_process(
COMMAND
- ${GIT_EXECUTABLE} describe --dirty
+ ${GIT_EXECUTABLE} describe
WORKING_DIRECTORY ${_git_src_path}
OUTPUT_VARIABLE _git_DESCRIBE
ERROR_VARIABLE _git_describe_error