summaryrefslogtreecommitdiff
path: root/Source/cmInstallCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-11 09:58:55 -0500
committerBrad King <brad.king@kitware.com>2021-01-28 12:47:58 -0500
commite32818dd76879d43b4cd84f7f72cd3f83dbecbd6 (patch)
tree00158c6f94bdc4b736e2ee91b6ad8a0daa23b138 /Source/cmInstallCommand.cxx
parenteea61268e6f755e70a91770f7f512e29bc6a288c (diff)
downloadcmake-e32818dd76879d43b4cd84f7f72cd3f83dbecbd6.tar.gz
cmInstallGenerator: Add backtrace to all install generators
Diffstat (limited to 'Source/cmInstallCommand.cxx')
-rw-r--r--Source/cmInstallCommand.cxx22
1 files changed, 14 insertions, 8 deletions
diff --git a/Source/cmInstallCommand.cxx b/Source/cmInstallCommand.cxx
index b04ad0cefb..7788db3bb8 100644
--- a/Source/cmInstallCommand.cxx
+++ b/Source/cmInstallCommand.cxx
@@ -133,7 +133,8 @@ std::unique_ptr<cmInstallFilesGenerator> CreateInstallFilesGenerator(
return cm::make_unique<cmInstallFilesGenerator>(
absFiles, destination, programs, args.GetPermissions(),
args.GetConfigurations(), args.GetComponent(), message,
- args.GetExcludeFromAll(), args.GetRename(), args.GetOptional());
+ args.GetExcludeFromAll(), args.GetRename(), args.GetOptional(),
+ mf->GetBacktrace());
}
std::unique_ptr<cmInstallFilesGenerator> CreateInstallFilesGenerator(
@@ -206,14 +207,16 @@ bool HandleScriptMode(std::vector<std::string> const& args,
return false;
}
helper.Makefile->AddInstallGenerator(
- cm::make_unique<cmInstallScriptGenerator>(script, false, component,
- exclude_from_all));
+ cm::make_unique<cmInstallScriptGenerator>(
+ script, false, component, exclude_from_all,
+ helper.Makefile->GetBacktrace()));
} else if (doing_code) {
doing_code = false;
std::string const& code = arg;
helper.Makefile->AddInstallGenerator(
- cm::make_unique<cmInstallScriptGenerator>(code, true, component,
- exclude_from_all));
+ cm::make_unique<cmInstallScriptGenerator>(
+ code, true, component, exclude_from_all,
+ helper.Makefile->GetBacktrace()));
}
}
@@ -1253,7 +1256,8 @@ bool HandleDirectoryMode(std::vector<std::string> const& args,
helper.Makefile->AddInstallGenerator(
cm::make_unique<cmInstallDirectoryGenerator>(
dirs, *destination, permissions_file, permissions_dir, configurations,
- component, message, exclude_from_all, literal_args, optional));
+ component, message, exclude_from_all, literal_args, optional,
+ helper.Makefile->GetBacktrace()));
// Tell the global generator about any installation component names
// specified.
@@ -1345,7 +1349,8 @@ bool HandleExportAndroidMKMode(std::vector<std::string> const& args,
cm::make_unique<cmInstallExportGenerator>(
&exportSet, ica.GetDestination(), ica.GetPermissions(),
ica.GetConfigurations(), ica.GetComponent(), message,
- ica.GetExcludeFromAll(), fname, name_space, exportOld, true));
+ ica.GetExcludeFromAll(), fname, name_space, exportOld, true,
+ helper.Makefile->GetBacktrace()));
return true;
#else
@@ -1458,7 +1463,8 @@ bool HandleExportMode(std::vector<std::string> const& args,
cm::make_unique<cmInstallExportGenerator>(
&exportSet, ica.GetDestination(), ica.GetPermissions(),
ica.GetConfigurations(), ica.GetComponent(), message,
- ica.GetExcludeFromAll(), fname, name_space, exportOld, false));
+ ica.GetExcludeFromAll(), fname, name_space, exportOld, false,
+ helper.Makefile->GetBacktrace()));
return true;
}