From eede7afb7e664ea84b921f8b3d4616c37139fe16 Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 16 Jan 2002 12:45:33 -0500 Subject: [PATCH] ENH: do not undef cmakedefine stuff, just comment out the line --- Source/cmConfigureFileCommand.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/cmConfigureFileCommand.cxx b/Source/cmConfigureFileCommand.cxx index e2bc759de..41c3de542 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