Stephen Kelly a1b9465bf8 Automoc: Add directory-level COMPILE_DEFINITIONS to command line (#14535)
In commit 18412153 (Refactor cmTarget::GetCompileDefinitions...,
2013-06-06) cmQtAutomoc was refactored to get all compile definitions
from the target instead of separately asking the target and querying the
directory-level COMPILE_DEFINITIONS property value.  While the
generation process does integrate directory-level COMPILE_DEFINITIONS
into the target definitions, this did not happen until after Automoc
targets are constructed.  Therefore the commit regressed use of
directory-level definitions in Automoc targets.

Factor the definition finalization logic out from the
cmGlobalGenerator::CreateGeneratorTargets method into a new
cmGlobalGenerator::FinalizeTargetCompileDefinitions method and call it
before constructing Automoc targets.  This will place the
directory-level definitions into the target in time to use them for the
Automoc targets.

Extend the QtAutomoc test to cover this case.
2013-11-05 12:00:49 -05:00
..
2013-08-15 13:11:57 -04:00
2013-07-16 13:59:30 -04:00
2013-07-31 08:48:19 -04:00
2013-10-07 00:01:10 -04:00
2013-05-22 12:52:12 -04:00
2013-05-16 19:33:13 +02:00
2011-09-15 16:20:33 +02:00
2012-09-28 17:00:52 -04:00
2012-09-28 17:00:52 -04:00
2012-02-02 23:40:21 +00:00
2013-07-31 08:48:19 -04:00