mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
Use cmGeneratorTarget for property access.
This commit is contained in:
@@ -667,7 +667,7 @@ cmMakefileTargetGenerator
|
||||
if (!compileCommands.empty() && (lang == "C" || lang == "CXX"))
|
||||
{
|
||||
std::string const iwyu_prop = lang + "_INCLUDE_WHAT_YOU_USE";
|
||||
const char *iwyu = this->Target->GetProperty(iwyu_prop);
|
||||
const char *iwyu = this->GeneratorTarget->GetProperty(iwyu_prop);
|
||||
if (iwyu && *iwyu)
|
||||
{
|
||||
std::string run_iwyu = "$(CMAKE_COMMAND) -E __run_iwyu --iwyu=";
|
||||
@@ -681,7 +681,7 @@ cmMakefileTargetGenerator
|
||||
if (!compileCommands.empty() && (lang == "C" || lang == "CXX"))
|
||||
{
|
||||
std::string const clauncher_prop = lang + "_COMPILER_LAUNCHER";
|
||||
const char *clauncher = this->Target->GetProperty(clauncher_prop);
|
||||
const char *clauncher = this->GeneratorTarget->GetProperty(clauncher_prop);
|
||||
if (clauncher && *clauncher)
|
||||
{
|
||||
std::vector<std::string> launcher_cmd;
|
||||
@@ -1513,7 +1513,7 @@ void cmMakefileTargetGenerator
|
||||
|
||||
// Add user-specified dependencies.
|
||||
if(const char* linkDepends =
|
||||
this->Target->GetProperty("LINK_DEPENDS"))
|
||||
this->GeneratorTarget->GetProperty("LINK_DEPENDS"))
|
||||
{
|
||||
cmSystemTools::ExpandListArgument(linkDepends, depends);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user