mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-07 07:08:40 -06:00
Merge topic 'find-package-mode-fixes'
a098ca0dcmake: Fix --find-package mode link line outputd9c600c5cmGlobalGenerator: Fix use of uninitialized value in --find-package mode
This commit is contained in:
@@ -94,6 +94,7 @@ cmGlobalGenerator::cmGlobalGenerator(cmake* cm)
|
||||
this->TryCompileOuterMakefile = CM_NULLPTR;
|
||||
|
||||
this->ConfigureDoneCMP0026AndCMP0024 = false;
|
||||
this->FirstTimeProgress = 0.0f;
|
||||
|
||||
cm->GetState()->SetMinGWMake(false);
|
||||
cm->GetState()->SetMSYSShell(false);
|
||||
|
||||
@@ -595,8 +595,8 @@ bool cmake::FindPackage(const std::vector<std::string>& args)
|
||||
gg->CreateGenerationObjects();
|
||||
cmGeneratorTarget* gtgt = gg->FindGeneratorTarget(tgt->GetName());
|
||||
cmLocalGenerator* lg = gtgt->GetLocalGenerator();
|
||||
lg->GetTargetFlags(buildType, linkLibs, frameworkPath, linkPath, flags,
|
||||
linkFlags, gtgt, false);
|
||||
lg->GetTargetFlags(buildType, linkLibs, flags, linkFlags, frameworkPath,
|
||||
linkPath, gtgt, false);
|
||||
linkLibs = frameworkPath + linkPath + linkLibs;
|
||||
|
||||
printf("%s\n", linkLibs.c_str());
|
||||
|
||||
Reference in New Issue
Block a user