diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2014-11-07 03:56:50 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-07 14:38:00 (GMT) |
commit | caa4b7b88b3845a23d0767b9e63ee6e31ca614e5 (patch) | |
tree | 54342f060c991d7678287fab9eac0b4267abe6f2 /Tests | |
parent | 4cc2d9b3a600b01259006f4ca4dd72f77a55da90 (diff) | |
download | CMake-caa4b7b88b3845a23d0767b9e63ee6e31ca614e5.zip CMake-caa4b7b88b3845a23d0767b9e63ee6e31ca614e5.tar.gz CMake-caa4b7b88b3845a23d0767b9e63ee6e31ca614e5.tar.bz2 |
genex: Preserve order while evaluating TARGET_OBJECTS
The logic introduced in commit v3.1.0-rc1~688^2~9 (Genex: Evaluate
TARGET_OBJECTS as a normal expression, 2014-02-26) ordered a map
by pointer value and then constructed a list of object files by
iterating over the map. This is not deterministic.
Since commit v3.1.0-rc1~688^2~5 (cmTarget: Allow any generator
expression in SOURCES property, 2014-03-18) the order produced by the
above-mentioned logic started being used for the actual list of object
files on the link line. Since it is not deterministic, spurious
re-links occur after re-running CMake simply because the order of
objects changed on the link line.
Fix this by iterating over the original vector of source files instead
of the map. This has a deterministic order.
Diffstat (limited to 'Tests')
0 files changed, 0 insertions, 0 deletions