mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-03 04:40:18 -05:00
cmLocalUnixMakefileGenerator3: use faster rfind overload
This commit is contained in:
@@ -249,7 +249,7 @@ void cmLocalUnixMakefileGenerator3::GetIndividualFileTargets(
|
||||
for (auto const& localObjectFile : localObjectFiles) {
|
||||
targets.push_back(localObjectFile.first);
|
||||
|
||||
std::string::size_type dot_pos = localObjectFile.first.rfind(".");
|
||||
std::string::size_type dot_pos = localObjectFile.first.rfind('.');
|
||||
std::string base = localObjectFile.first.substr(0, dot_pos);
|
||||
if (localObjectFile.second.HasPreprocessRule) {
|
||||
targets.push_back(base + ".i");
|
||||
|
||||
Reference in New Issue
Block a user