ENH: do not undef cmakedefine stuff, just comment out the line

This commit is contained in:
Bill Hoffman 2002-01-16 12:45:33 -05:00
parent 67a5a82586
commit eede7afb7e

View File

@ -152,14 +152,15 @@ void cmConfigureFileCommand::ConfigureFile()
{ {
cmSystemTools::ReplaceString(inLine, cmSystemTools::ReplaceString(inLine,
"#cmakedefine", "#define"); "#cmakedefine", "#define");
fout << inLine << "\n";
} }
else else
{ {
cmSystemTools::ReplaceString(inLine, cmSystemTools::ReplaceString(inLine,
"#cmakedefine", "#undef"); "#cmakedefine", "#undef");
fout << "/* " << inLine << " */\n";
} }
} }
fout << inLine << "\n";
} }
} }
// close the files before attempting to copy // close the files before attempting to copy