mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-28 09:59:20 -05:00
cmMakefile: Make GetRequiredDefinition return std::string
In all cases the return value is converted to std::string anyway. Also remove unnecessary `c_str()` calls in arguments to `GetRequiredDefinition`.
This commit is contained in:
committed by
Brad King
parent
612975c665
commit
4d89830d71
@@ -236,9 +236,9 @@ cmFindLibraryHelper::cmFindLibraryHelper(cmMakefile* mf)
|
||||
this->GG = this->Makefile->GetGlobalGenerator();
|
||||
|
||||
// Collect the list of library name prefixes/suffixes to try.
|
||||
const char* prefixes_list =
|
||||
std::string const& prefixes_list =
|
||||
this->Makefile->GetRequiredDefinition("CMAKE_FIND_LIBRARY_PREFIXES");
|
||||
const char* suffixes_list =
|
||||
std::string const& suffixes_list =
|
||||
this->Makefile->GetRequiredDefinition("CMAKE_FIND_LIBRARY_SUFFIXES");
|
||||
cmSystemTools::ExpandListArgument(prefixes_list, this->Prefixes, true);
|
||||
cmSystemTools::ExpandListArgument(suffixes_list, this->Suffixes, true);
|
||||
|
||||
Reference in New Issue
Block a user