diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 14:30:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 14:30:28 (GMT) |
commit | c34b4497f8d595390d8e5a9d216de9ddc95a47eb (patch) | |
tree | 51662f8532e04391c56d3fcd245ec2069e93a1bd /Source/cmIncludeExternalMSProjectCommand.cxx | |
parent | 2d53894c31c9d6849c67f4c218c0aefed1eb7921 (diff) | |
download | CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.zip CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.gz CMake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.bz2 |
cmTarget: add std::string overloads
Diffstat (limited to 'Source/cmIncludeExternalMSProjectCommand.cxx')
-rw-r--r-- | Source/cmIncludeExternalMSProjectCommand.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Source/cmIncludeExternalMSProjectCommand.cxx b/Source/cmIncludeExternalMSProjectCommand.cxx index fa1e8bc..e59c428 100644 --- a/Source/cmIncludeExternalMSProjectCommand.cxx +++ b/Source/cmIncludeExternalMSProjectCommand.cxx @@ -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 |