summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomTargetCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-03-31 17:23:32 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-03-31 17:23:32 (GMT)
commit148b528f9d7d991dc01f277624df4a8aa41feccc (patch)
tree4d73c1c4b406670800021667ae390e2594f99e42 /Source/cmAddCustomTargetCommand.cxx
parentecc81cd353556af1d9afa3426f0892dd6b92b2b7 (diff)
parent128605054a2d773189869d6e1b5000e6d4a93241 (diff)
downloadCMake-148b528f9d7d991dc01f277624df4a8aa41feccc.zip
CMake-148b528f9d7d991dc01f277624df4a8aa41feccc.tar.gz
CMake-148b528f9d7d991dc01f277624df4a8aa41feccc.tar.bz2
Merge topic 'custom-command-slashes'
1286050 Normalize slashes of add_custom_(command|target) DEPENDS (#11973)
Diffstat (limited to 'Source/cmAddCustomTargetCommand.cxx')
-rw-r--r--Source/cmAddCustomTargetCommand.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmAddCustomTargetCommand.cxx b/Source/cmAddCustomTargetCommand.cxx
index 27dea98..4eba886 100644
--- a/Source/cmAddCustomTargetCommand.cxx
+++ b/Source/cmAddCustomTargetCommand.cxx
@@ -123,7 +123,11 @@ bool cmAddCustomTargetCommand
currentLine.push_back(copy);
break;
case doing_depends:
- depends.push_back(copy);
+ {
+ std::string dep = copy;
+ cmSystemTools::ConvertToUnixSlashes(dep);
+ depends.push_back(dep);
+ }
break;
case doing_comment:
comment_buffer = copy;