summaryrefslogtreecommitdiffstats
path: root/Source/cmConfigureFileCommand.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2002-01-16 17:45:33 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2002-01-16 17:45:33 (GMT)
commiteede7afb7e664ea84b921f8b3d4616c37139fe16 (patch)
treeb14438daa2feddb34f84ea0cec911dcc89af69b9 /Source/cmConfigureFileCommand.cxx
parent67a5a82586c9ed79a428179da2f54d626985a829 (diff)
downloadCMake-eede7afb7e664ea84b921f8b3d4616c37139fe16.zip
CMake-eede7afb7e664ea84b921f8b3d4616c37139fe16.tar.gz
CMake-eede7afb7e664ea84b921f8b3d4616c37139fe16.tar.bz2
ENH: do not undef cmakedefine stuff, just comment out the line
Diffstat (limited to 'Source/cmConfigureFileCommand.cxx')
-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