Do the two file names refer to the same Visual Studio solution? Or are we perhaps looking for any and all solutions?
| 306 | //! Do the two file names refer to the same Visual Studio solution? Or are |
| 307 | //! we perhaps looking for any and all solutions? |
| 308 | bool FilesSameSolution(std::string const& slnFile, std::string const& slnName) |
| 309 | { |
| 310 | if (slnFile == "ALL"_s || slnName == "ALL"_s) { |
| 311 | return true; |
| 312 | } |
| 313 | |
| 314 | // Otherwise, make lowercase local copies, convert to Unix slashes, and |
| 315 | // see if the resulting strings are the same: |
| 316 | std::string s1 = cmSystemTools::LowerCase(slnFile); |
| 317 | std::string s2 = cmSystemTools::LowerCase(slnName); |
| 318 | cmSystemTools::ConvertToUnixSlashes(s1); |
| 319 | cmSystemTools::ConvertToUnixSlashes(s2); |
| 320 | |
| 321 | return s1 == s2; |
| 322 | } |
| 323 | |
| 324 | //! Find instances of Visual Studio with the given solution file |
| 325 | //! open. Pass "ALL" for slnFile to gather all running instances |
no outgoing calls
no test coverage detected
searching dependent graphs…