The new GNU Emacs and semantic.cache
How can i prevent contaminating each directory with a file semantic-cache?
Set semanticdb-default-save-directory to a directory, by putting the following in your emacs init file (usually .emacs in your home directory):
(setq semanticdb-default-save-directory "~/.semantic")
(replace ~/.semantic with a different directory, if you wish.)