summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomCommandCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-12-15 13:44:57 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-15 13:44:57 (GMT)
commita75a0a14484a7f11961430006fad602099d22f6c (patch)
tree2aff1ede3944933566b1908e3e84929c6f6b8c63 /Source/cmAddCustomCommandCommand.cxx
parenta14a8562ea5f321b0a8f6f61f4c457da298825c5 (diff)
downloadCMake-a75a0a14484a7f11961430006fad602099d22f6c.zip
CMake-a75a0a14484a7f11961430006fad602099d22f6c.tar.gz
CMake-a75a0a14484a7f11961430006fad602099d22f6c.tar.bz2
Normalize add_custom_command OUTPUT names (#10485)
Previously the OUTPUT arguments of add_custom_command were not slash-normalized but those of add_library and add_executable were. This caused the example add_custom_command(OUTPUT a//b.c ...) add_library(... a//b.c ...) to fail at build time with "no rule to make a/b.c". Fix this and modify the CustomCommand test to try it.
Diffstat (limited to 'Source/cmAddCustomCommandCommand.cxx')
-rw-r--r--Source/cmAddCustomCommandCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmAddCustomCommandCommand.cxx b/Source/cmAddCustomCommandCommand.cxx
index f6b3234..7af6ec8 100644
--- a/Source/cmAddCustomCommandCommand.cxx
+++ b/Source/cmAddCustomCommandCommand.cxx
@@ -161,6 +161,7 @@ bool cmAddCustomCommandCommand
filename += "/";
}
filename += copy;
+ cmSystemTools::ConvertToUnixSlashes(filename);
break;
case doing_source:
// We do not want to convert the argument to SOURCE because