diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 09:30:00 -0500 |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2019-12-14 09:30:28 -0500 |
commit | c34b4497f8d595390d8e5a9d216de9ddc95a47eb (patch) | |
tree | 51662f8532e04391c56d3fcd245ec2069e93a1bd /Source/cmake.cxx | |
parent | 2d53894c31c9d6849c67f4c218c0aefed1eb7921 (diff) | |
download | cmake-c34b4497f8d595390d8e5a9d216de9ddc95a47eb.tar.gz |
cmTarget: add std::string overloads
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r-- | Source/cmake.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx index c9fe963232..fc9da57fda 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -548,7 +548,7 @@ bool cmake::FindPackage(const std::vector<std::string>& args) const char* targetName = "dummy"; std::vector<std::string> srcs; cmTarget* tgt = mf->AddExecutable(targetName, srcs, true); - tgt->SetProperty("LINKER_LANGUAGE", language.c_str()); + tgt->SetProperty("LINKER_LANGUAGE", language); std::string libs = mf->GetSafeDefinition("PACKAGE_LIBRARIES"); std::vector<std::string> libList = cmExpandedList(libs); |