diff options
author | Brad King <brad.king@kitware.com> | 2019-12-17 16:08:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-12-17 16:09:20 (GMT) |
commit | 64e2891cbddcfa491b9158e479db16114aeabc33 (patch) | |
tree | be5274274d66e083fe265e50380e36037e2a8e26 /Source/cmake.cxx | |
parent | 7d69ab02adcad7baf72facd2c29ef232d230ce01 (diff) | |
parent | c34b4497f8d595390d8e5a9d216de9ddc95a47eb (diff) | |
download | CMake-64e2891cbddcfa491b9158e479db16114aeabc33.zip CMake-64e2891cbddcfa491b9158e479db16114aeabc33.tar.gz CMake-64e2891cbddcfa491b9158e479db16114aeabc33.tar.bz2 |
Merge topic 'stdstring-target'
c34b4497f8 cmTarget: add std::string overloads
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4137
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 6bfb37e..684ab3b 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); |