diff options
-rw-r--r-- | Source/cmMakefile.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index fae8ad9..86d0e2e 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -2379,9 +2379,8 @@ void cmMakefile::ConfigureString(const std::string& input, } else { - cmSystemTools::ReplaceString(line, "#cmakedefine", "#undef"); - output += "/* "; - output += line; + output += "/* #undef "; + output += this->cmDefineRegex.match(1); output += " */"; } } |