Merge topic 'target-LOCATION-policy' into next

8627fd2 cmTarget: Deprecate the LOCATION target property with a policy.
Only use the file(GENERATE) command with new CMake versions.
Merge topic 'target-LOCATION-policy' into next

9282c8f Only use the file(GENERATE) command with new CMake versions.
Add if(POLICY)
Merge topic 'target-LOCATION-policy' into next

eedb98d Add if(POLICY)
cmTarget: Deprecate the LOCATION target property with a policy.

The final location and name of a build-target is not determined
until generate-time. However, reading the LOCATION property from
a target is currently allowed at configure time. Apart from creating
possibly-erroneous results, this has an impact on the implementation
of cmake itself, and prevents some major cleanups from being made.

Disallow reading LOCATION from build-targets with a policy. Port some
existing uses of it in CMake itself to use the TARGET_FILE generator
expression.
Merge topic 'target-LOCATION-policy' into next

352f2c3 cmTarget: Deprecate the LOCATION target property with a policy.
Remove policy setting where it never exists.
Merge topic 'target-LOCATION-policy' into next

5f160c4 Remove policy setting where it never exists.
cmTarget: Deprecate the LOCATION target property with a policy.

The final location and name of a build-target is not determined
until generate-time. However, reading the LOCATION property from
a target is currently allowed at configure time. Apart from creating
possibly-erroneous results, this has an impact on the implementation
of cmake itself, and prevents some major cleanups from being made.

Disallow reading LOCATION from build-targets with a policy. Port some
existing uses of it in CMake itself to use the TARGET_FILE generator
expression.
Merge topic 'target-LOCATION-policy' into next

9d80ab0 cmTarget: Deprecate the LOCATION target property with a policy.
Despite quoting, a space in the path seems to cause problems.

Use a relative path instead for the include.
Merge topic 'target-LOCATION-policy' into next

05b2108 Despite quoting, a space in the path seems to cause problems.
cmTarget: Deprecate the LOCATION target property with a policy.

The final location and name of a build-target is not determined
until generate-time. However, reading the LOCATION property from
a target is currently allowed at configure time. Apart from creating
possibly-erroneous results, this has an impact on the implementation
of cmake itself, and prevents some major cleanups from being made.

Disallow reading LOCATION from build-targets with a policy. Port some
existing uses of it in CMake itself to use the TARGET_FILE generator
expression.
Merge topic 'target-LOCATION-policy' into next

04a10e3 cmTarget: Deprecate the LOCATION target property with a policy.
export(): Set a Makefile on the cmExportBuildFileGenerator.

This is better than the cmCommand, because the lifetime of that is
not as useful, and it is only used to report an error anyway.

In the next commit, the cmExportBuildFileGenerator will outlive the
cmCommand.
Do not quote arguments to include in makefiles.

Make treats the quotes as part of the file name.
Merge topic 'target-LOCATION-policy' into next

f815879 Do not quote arguments to include in makefiles.
cmTarget: Deprecate the LOCATION target property with a policy.

The final location and name of a build-target is not determined
until generate-time. However, reading the LOCATION property from
a target is currently allowed at configure time. Apart from creating
possibly-erroneous results, this has an impact on the implementation
of cmake itself, and prevents some major cleanups from being made.

Disallow reading LOCATION from build-targets with a policy. Port some
existing uses of it in CMake itself to use the TARGET_FILE generator
expression.
Merge topic 'target-LOCATION-policy' into next

c4ab948 cmTarget: Deprecate the LOCATION target property with a policy.