make cmLocalGenerator::EscapeForCMake() static

This way it can be used also if there is no cmLocalGenerator instance around

Alex
automoc: fix #13018, proper cmake escaping to avoid false rebuilds

The variables stored in the AutomocInfo.cmake file were not properly
escaped, so when reading them back they could turn into lists, if they
contained double quotes initially.
This patch fixes this by using cmLocalGenerator::EscapeForCMake() to
escape the variables properly.

Alex
automoc: add define to test which caused bug #13018

This does not really test that the bug is fixed, but at least it makes
it easy to check manually whether the bug is there or not.
I have to see whether I can build a test which does test that
a target is not rebuilt everytime.

Alex
Merge topic 'AutomocProperCMakeEscaping_13018' into next

9b32475 automoc: add define to test which caused bug #13018
2066511 automoc: fix #13018, proper cmake escaping to avoid false rebuilds
c652812 make cmLocalGenerator::EscapeForCMake() static
KWSys Nightly Date Stamp
Fix some doc typo and add an undocumented var.
Merge topic 'CPackNSIS-smallDocTypoFix' into next

8fe0da5 Fix some doc typo and add an undocumented var.
Override topdir from rpm command line seems necessary on Amazon linux.

This modification should be harmless on other distro.
Signed-off-by: Eric NOULARD <eric.noulard@gmail.com>
Merge topic 'CPackPM-fixAmazonLinux' into next

3a0c60d Override topdir from rpm command line seems necessary on Amazon linux.
Merge topic 'ninja-generator'

6b5614f Ninja: Substitute <OBJECT> and <CMAKE_C_COMPILER> in depfile flags
Merge topic 'AutomocProperCMakeEscaping_13018'

9b32475 automoc: add define to test which caused bug #13018
2066511 automoc: fix #13018, proper cmake escaping to avoid false rebuilds
c652812 make cmLocalGenerator::EscapeForCMake() static
Merge branch 'master' into next
KWSys Nightly Date Stamp
Always compile sources with known language

Refactoring by commit 11d9b211 (Add cmGeneratorTarget to represent a
target during generation, 2012-03-07) and commit 45c2f932 (Simplify
cmMakefileTargetGenerator using cmGeneratorTarget, 2012-03-07) preserved
behavior introduced by commit 7740ccd1 (some cleanup of the makefile
generator, 2006-02-14) that favored the IgnoreFile extension test over
the availability of a known compilation language associated with a
source file.  If a source is not marked as HEADER_FILE_ONLY and has a
known language extension or an explicit LANGUAGE property it should be
treated as that language.  The LANGUAGE source file property
documentation says so.
Classify known header file extensions as headers

Commit 328c0f65 (Simplify cmVisualStudio10TargetGenerator source
classification, 2012-03-19) introduced the first use of source
classification from cmGeneratorTarget (which originated as Makefile
generator logic) in a Visual Studio generator for handling of header
files.  Fix classification of header files to match known header
extensions instead of only the HEADER_FILE_ONLY property.  Make it
consistent with the "Header Files" source group.
Merge topic 'fix-source-classification' into next

9a2c60e Classify known header file extensions as headers
1c48992 Always compile sources with known language
VS: Add CMakeLists.txt re-run rules at start of generation

Since commit 328c0f65 (Simplify cmVisualStudio10TargetGenerator source
classification, 2012-03-19) the VS 10 generator uses the
cmGeneratorTarget source classification instead of directly getting the
list of source files from the target.  This accidentally dropped the
CMakeLists.txt files from generated projects because they are added too
late for cmGeneratorTarget.

All generator-specific source files must be added to targets prior to
cmGeneratorTarget construction.  Refactor addition of the CMakeLists.txt
files with CMake re-run custom commands to take place before normal
generation begins, and therefore early enough to be included in the
cmGeneratorTarget classification.
Merge topic 'fix-source-classification' into next

01e979a VS: Add CMakeLists.txt re-run rules at start of generation
automoc: include <unistd.h> on Apple to get pathconf
Merge topic 'include-unistd-on-mac' into next

8a70495 automoc: include <unistd.h> on Apple to get pathconf
3eb3d5f KWSys Nightly Date Stamp