Replace -g3 with -g for CUDA 4.1 and 4.2 in addition to CUDA < 3.0.

CUDA 4.1 reintroduced the bug where -g3 breaks compilation.  This
wasn't fixed until CUDA 5.0, so both CUDA 4.1 and 4.2 have this bug.
fix #13474: also rescan dependencies if the depender does not exist

If the depender (e.g. foo.o) does not exist, also rescan dependencies if
one of the dependees (e.g. foo.cxx) is older than the already existing
depend.internal file, since this means it can be out of date.

Alex
Add missing whitespace to docs.
Fix some typos in the docs.

s/static the static/the static/

Make Visual Studio capitalized.
Remove incorrect doc string for link type enum

This is actually a duplicate doc string for a method a few lines above.
Tests/ObjectLibrary: Do not enable CXX in subdirectories

In commit b237dbd8 (Xcode: Fix object library references in
multi-project trees, 2012-08-03) we accidentally enabled CXX in the
subdiretories of this test by invoking project() with only one argument.
The top-level directory of the test enables only C, so do this in the
subdirectories too.
-fix line length

Alex
-fix Java dependency scanning, broken in previous commit

Alex
Remove duplicate 'of' from docs.
Don't duplicate -D defines sent to the compiler.

There is no need to do so. Be consistent with include directories and
ensure uniqueness.

This requires changing the API of the cmLocalGenerator::AppendDefines
method, and changing the generators to match.

The test unfortunately can't test for uniqueness, but it at least verifies
that nothing gets lost.
Fix unfortunate documentation error for PIC feature.

The wrong variable is documented, and it is not referred to in
the target-specific property.
Added CUDA_SOURCE_PROPERTY_FORMAT. Allows setting per file format (OBJ or PTX)

Added CUDA_SOURCE_PROPERTY_FORMAT that allows users to set the format (OBJ or PTX) on a
per file basis.
Fix CompileDefinitions test on Visual Studio.

Avoid testing unsupported spaces in define values.
Fix the test setting COMPILE_DEFINITIONS target property
VS11: Rename 'Immersive' to 'WindowsAppContainer' (#12930)

Since commit 9e01aefd (VS: Add support for WinRT project properties,
2012-02-03) CMake generates for VS 11 projects the 'Immersive' element
for the VS_WINRT_EXTENSIONS target property.  That was based on the VS
11 preview version.  The final version renamed the element to
'WindowsAppContainer', so generate that instead.

Suggested-by: Eugene Golushkov <eugene_gff@ukr.net>
Ninja: prepare msvc pdb cleanup
Ninja:split out setting of msvc TARGET_PDB
Rename files from main.cpp to more meaningful names.

Because the main file for the dummy-executable and the actual compile
test were both called main.cpp, they were overwriting each other during
in-source builds.
Ninja: remove GetTargetPDB because it is used only once
VS: Disable precompiled headers unless enabled by project (#12930)

In VS 11 the WindowsAppContainer element enabled by the
VS_WINRT_EXTENSIONS property activates precompiled header support
automatically if no PrecompiledHeader setting is specified.  For VS 10 and
11 set PrecompiledHeader to "NotUsing" explicitly by default unless
overridden by a project-specified flag.

Suggested-by: Eugene Golushkov <eugene_gff@ukr.net>