summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmConfigureFileCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx
index e2bc759..41c3de5 100644
--- a/Source/cmConfigureFileCommand.cxx
+++ b/Source/cmConfigureFileCommand.cxx
@@ -152,14 +152,15 @@ void cmConfigureFileCommand::ConfigureFile()
{
cmSystemTools::ReplaceString(inLine,
"#cmakedefine", "#define");
+ fout << inLine << "\n";
}
else
{
cmSystemTools::ReplaceString(inLine,
"#cmakedefine", "#undef");
+ fout << "/* " << inLine << " */\n";
}
}
- fout << inLine << "\n";
}
}
// close the files before attempting to copy