diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-16 17:45:33 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-01-16 17:45:33 (GMT) |
commit | eede7afb7e664ea84b921f8b3d4616c37139fe16 (patch) | |
tree | b14438daa2feddb34f84ea0cec911dcc89af69b9 /Source/cmConfigureFileCommand.cxx | |
parent | 67a5a82586c9ed79a428179da2f54d626985a829 (diff) | |
download | CMake-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.cxx | 3 |
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 |