mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-28 19:58:34 -06:00
Merge topic 'server-mode-install-fix'
c150bf087c Server mode: Fix regression of hasInstallRule
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2735
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include "cmGeneratorTarget.h"
|
||||
#include "cmGlobalGenerator.h"
|
||||
#include "cmInstallGenerator.h"
|
||||
#include "cmInstallSubdirectoryGenerator.h"
|
||||
#include "cmInstallTargetGenerator.h"
|
||||
#include "cmJsonObjectDictionary.h"
|
||||
#include "cmJsonObjects.h"
|
||||
@@ -640,8 +641,13 @@ static Json::Value DumpProjectList(const cmake* cm, std::string const& config)
|
||||
// associated generators.
|
||||
bool hasInstallRule = false;
|
||||
for (const auto generator : projectIt.second) {
|
||||
hasInstallRule =
|
||||
generator->GetMakefile()->GetInstallGenerators().empty() == false;
|
||||
for (const auto installGen :
|
||||
generator->GetMakefile()->GetInstallGenerators()) {
|
||||
if (!dynamic_cast<cmInstallSubdirectoryGenerator*>(installGen)) {
|
||||
hasInstallRule = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (hasInstallRule) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user