compilation-search-path

compilation-search-path is a variable defined in `compile.el'.
Its value is
(nil)


Documentation:
List of directories to search for source files named in error messages.
Elements should be directory names, not file names of directories.
The value nil as an element means to try the default directory.

You can customize this variable.