CPack: Don't copy cmMakefile. Just push a scope instead.
This commit is contained in:
parent
f438cd3731
commit
f3af9517ff
@ -356,8 +356,8 @@ int main (int argc, char const* const* argv)
|
|||||||
++it )
|
++it )
|
||||||
{
|
{
|
||||||
const char* gen = it->c_str();
|
const char* gen = it->c_str();
|
||||||
cmMakefile newMF(*globalMF);
|
cmMakefile::ScopePushPop raii(globalMF);
|
||||||
cmMakefile* mf = &newMF;
|
cmMakefile* mf = globalMF;
|
||||||
cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE,
|
cmCPack_Log(&log, cmCPackLog::LOG_VERBOSE,
|
||||||
"Specified generator: " << gen << std::endl);
|
"Specified generator: " << gen << std::endl);
|
||||||
if ( parsed && !mf->GetDefinition("CPACK_PACKAGE_NAME") )
|
if ( parsed && !mf->GetDefinition("CPACK_PACKAGE_NAME") )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user