cmLocalUnixMakefileGenerator3: use faster rfind overload

This commit is contained in:
Ben Boeckel
2025-05-22 15:56:28 +02:00
parent 9847dbb222
commit 4abd800498
+1 -1
View File
@@ -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");