mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-05 21:31:08 -06:00
cmTarget: add std::string overloads
This commit is contained in:
@@ -83,22 +83,21 @@ bool cmIncludeExternalMSProjectCommand(std::vector<std::string> const& args,
|
||||
}
|
||||
|
||||
// Create a target instance for this utility.
|
||||
cmTarget* target =
|
||||
mf.AddNewTarget(cmStateEnums::UTILITY, utility_name.c_str());
|
||||
cmTarget* target = mf.AddNewTarget(cmStateEnums::UTILITY, utility_name);
|
||||
if (mf.GetPropertyAsBool("EXCLUDE_FROM_ALL")) {
|
||||
target->SetProperty("EXCLUDE_FROM_ALL", "TRUE");
|
||||
}
|
||||
|
||||
target->SetProperty("GENERATOR_FILE_NAME", utility_name.c_str());
|
||||
target->SetProperty("EXTERNAL_MSPROJECT", path.c_str());
|
||||
target->SetProperty("GENERATOR_FILE_NAME", utility_name);
|
||||
target->SetProperty("EXTERNAL_MSPROJECT", path);
|
||||
|
||||
if (!customType.empty())
|
||||
target->SetProperty("VS_PROJECT_TYPE", customType.c_str());
|
||||
target->SetProperty("VS_PROJECT_TYPE", customType);
|
||||
if (!platformMapping.empty())
|
||||
target->SetProperty("VS_PLATFORM_MAPPING", platformMapping.c_str());
|
||||
target->SetProperty("VS_PLATFORM_MAPPING", platformMapping);
|
||||
|
||||
for (std::string const& d : depends) {
|
||||
target->AddUtility(d.c_str());
|
||||
target->AddUtility(d);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user