diff options
Diffstat (limited to 'Source/cmGlobalNinjaGenerator.cxx')
-rw-r--r-- | Source/cmGlobalNinjaGenerator.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmGlobalNinjaGenerator.cxx b/Source/cmGlobalNinjaGenerator.cxx index abf5c82..912e53e 100644 --- a/Source/cmGlobalNinjaGenerator.cxx +++ b/Source/cmGlobalNinjaGenerator.cxx @@ -479,22 +479,22 @@ void cmGlobalNinjaGenerator std::string windres = cmSystemTools::FindProgram("windres"); if(windres.empty()) { - std::string path; + std::string compiler_path; std::string::size_type prefix = std::string::npos; if (mf->GetDefinition("CMAKE_C_COMPILER")) { - path = mf->GetDefinition("CMAKE_C_COMPILER"); - prefix = path.rfind("gcc"); + compiler_path = mf->GetDefinition("CMAKE_C_COMPILER"); + prefix = compiler_path.rfind("gcc"); } else if (mf->GetDefinition("CMAKE_CXX_COMPILER")) { - path = mf->GetDefinition("CMAKE_CXX_COMPILER"); - prefix = path.rfind("++"); + compiler_path = mf->GetDefinition("CMAKE_CXX_COMPILER"); + prefix = compiler_path.rfind("++"); prefix--; } if (prefix != std::string::npos) { - windres = path.substr(0, prefix) + "windres"; + windres = compiler_path.substr(0, prefix) + "windres"; windres = cmSystemTools::FindProgram(windres.c_str()); } } |