diff --git a/Source/cmConfigureFile.cxx b/Source/cmConfigureFile.cxx index a94d9154d..8171faf9b 100644 --- a/Source/cmConfigureFile.cxx +++ b/Source/cmConfigureFile.cxx @@ -93,7 +93,9 @@ void cmConfigureFile::FinalPass() { inLine = buffer; m_Makefile->ExpandVariablesInString(inLine); - m_Makefile->RemoveVariablesInString(inLine); + // This call will remove all tcl variable substitutions of the form ${Foo} + // m_Makefile->RemoveVariablesInString(inLine); + // look for special cmakedefine symbol and handle it // is the symbol defined if (cmdefine.find(inLine))