summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-12-13 15:01:27 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-12-13 15:01:34 (GMT)
commiteef87a37cdfe6493dd292e1278771a8c6c819242 (patch)
tree42db79d642a68dfa99ed65c80bad644390761031 /Source
parent04a9145af5a16ea1329e63b7708886744f50a981 (diff)
parentc150bf087c9ba3425d91bb1103589a928fc87098 (diff)
downloadCMake-eef87a37cdfe6493dd292e1278771a8c6c819242.zip
CMake-eef87a37cdfe6493dd292e1278771a8c6c819242.tar.gz
CMake-eef87a37cdfe6493dd292e1278771a8c6c819242.tar.bz2
Merge topic 'server-mode-install-fix'
c150bf087c Server mode: Fix regression of hasInstallRule Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2735
Diffstat (limited to 'Source')
-rw-r--r--Source/cmJsonObjects.cxx10
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmJsonObjects.cxx b/Source/cmJsonObjects.cxx
index bc50f9f..0da6f4f 100644
--- a/Source/cmJsonObjects.cxx
+++ b/Source/cmJsonObjects.cxx
@@ -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;