mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 22:58:37 -05:00
Merge topic 'ninja-cmcldeps-first-line'
11a6dac Ninja: don't suppress warning about compiler options
This commit is contained in:
+3
-1
@@ -238,7 +238,9 @@ int main() {
|
||||
// needed to suppress filename output of msvc tools
|
||||
std::string srcfilename;
|
||||
std::string::size_type pos = srcfile.rfind("\\");
|
||||
if (pos != std::string::npos) {
|
||||
if (pos == std::string::npos) {
|
||||
srcfilename = srcfile;
|
||||
} else {
|
||||
srcfilename = srcfile.substr(pos + 1);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user