diff options
author | Brad King <brad.king@kitware.com> | 2015-01-29 14:13:53 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-01-29 14:13:53 (GMT) |
commit | abec4213d61cb74aba5da6f83220b38ef7882209 (patch) | |
tree | deb91704649b5bfe0fcc2eac8ff12f2382578dea /Source/cmGeneratorTarget.cxx | |
parent | 5968ad58fd85e9703c36cd9154137f24c55e5413 (diff) | |
parent | 9259d7788193ad23aa429652af983afc3bc4a953 (diff) | |
download | CMake-abec4213d61cb74aba5da6f83220b38ef7882209.zip CMake-abec4213d61cb74aba5da6f83220b38ef7882209.tar.gz CMake-abec4213d61cb74aba5da6f83220b38ef7882209.tar.bz2 |
Merge topic 'fix-OBJECT_DEPENDS-after-path-normalization'
9259d778 Normalize OBJECT_DEPENDS paths to match custom commands (#15366)
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 8d18c3a..a4f099b 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -663,6 +663,14 @@ void cmTargetTraceDependencies::Trace() { std::vector<std::string> objDeps; cmSystemTools::ExpandListArgument(additionalDeps, objDeps); + for(std::vector<std::string>::iterator odi = objDeps.begin(); + odi != objDeps.end(); ++odi) + { + if (cmSystemTools::FileIsFullPath(*odi)) + { + *odi = cmSystemTools::CollapseFullPath(*odi); + } + } this->FollowNames(objDeps); } |