mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: do not undef cmakedefine stuff, just comment out the line
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user