Revert "UseSWIG: Name extra generated files after module name (#10080)"

This reverts commit f0111deb1ea21f667b2fbf57f55d5ee2a80f5ccc.
CMake 3.0.0-rc3
Treat .m files consistently as C across all generators

Objective C sources should be compiled with the C compiler, not C++.

The Xcode generator correctly classifies ".m" sources already.  The
cmSystemTools::GetFileFormat method was fixed by commit v2.8.0~1782 (fix
for 7045, use gcc for .m, 2008-08-19) but it is not used by any of the
generator since commit v2.4.0~2819 (major changes to support addition of
languages, 2004-09-22).

Fix the CMAKE_<LANG>_SOURCE_FILE_EXTENSIONS table entries so that
cmGlobalGenerator::GetLanguageFromExtension tells the Makefile, Ninja,
and VS IDE generators to compile ".m" sources as C.  This makes behavior
consistent on all generators.

Signed-off-by: Tim Blechmann <tim@klingt.org>
KWSys 2014-03-19 (a8aa1014)

Extract upstream KWSys using the following shell commands.

$ git archive --prefix=upstream-kwsys/ a8aa1014 | tar x
$ git shortlog --no-merges --abbrev=8 --format='%h %s' dd873734..a8aa1014
Gerhard Grimm (1):
      fa86f1ba SystemInformation: Fix HP-UX PA-RISC processor detection

Rolf Eike Beer (1):
      a8aa1014 SystemInformation: Fix HP-UX Intel processor detection

Change-Id: I5891a6898cc73caf1b2be98859d5d4b11a24c5df
Merge branch 'upstream-kwsys' into update-kwsys
UseJava: Copy resource files before compiling the jar (#13360)

Co-Author: Mary Ellen Foster <mefoster@gmail.com>
cmMakefile: Report type of INTERFACE library in conflict.
Qt4: Fix moc command dependencies for incremental build.

Since commit v2.8.12~327^2 (Qt4Macros: Allow specifying a TARGET
in invokations of macros., 2013-02-26), a parameters file is
populated with moc arguments at generate-time.

When the compile definitions or include directories change, the
parameters file is updated but moc is not re-run in response.

Fix that by making the moc invocation depend on the parameters file.

Reported-At: https://bugreports.qt-project.org/browse/QTBUG-36970
Haiku: Enable CMake builtin ELF editor

Co-Author: Brad King <brad.king@kitware.com>
Haiku: Fix compiler detection when using distcc

Also remove outdated include directories.
cmake: Advise user to remove CMakeFiles with CMakeCache.txt (#14820)
ninja: Add support for custom depfile formats

Not everything that isn't MSVC is GCC. I have support for LDC's depfile
format on its way upstream[1], but its future is uncertain. CMake should
at least support this for future depfile formats.

[1]https://github.com/martine/ninja/pull/721
FindPkgConfig: Stop processing when REQUIRED package not found (#14381)

Make the behavior similar to find_package.
Avoid trailing space in CMAKE_*_LINKER_FLAGS when LDFLAGS is empty
QtAutogen: Use the basename for resource files.

The rcc tool generates a cpp file with a symbol called qInitResources
or called qInitResources_${name}, if the name is passed. The
qInitResources symbol clashes if multiple qrc files are used in
one target.

Always pass the name to ensure that the symbol is unique. This is also
the behavior of the qtx_add_resource macros.
QtAutogen: Fix use of multiple ui files in a single target.

Don't store a mapping of the directory to the ui file. The directory
will be a unique key, allowing only one ui file to be specified.
Use the source file name instead as the mapping key.
FindBoost: Search next to MPI libs for graph_parallel (#14832)

In addition to the MPI libraries, graph_parallel lives in the MPI libdir
as well.
Help: Fix typo in cmake-qt manual.

Do -> To.
Merge branch 'release'
Merge topic 'UseSWIG-revert-bad-fix-0010080'

d9760647 Revert "UseSWIG: Name extra generated files after module name (#10080)"