| 516 | } |
| 517 | |
| 518 | std::string FallbackMSYSTEM_PREFIX(cm::string_view msystem) |
| 519 | { |
| 520 | // These layouts are used by distributions such as |
| 521 | // * MSYS2: https://www.msys2.org/docs/environments/ |
| 522 | // * MinGW/MSYS 1.0: http://mingw.osdn.io/ |
| 523 | if (msystem == "MSYS"_s) { |
| 524 | static std::string const msystem_msys = FindMSYSTEM_PREFIX({ "/usr" }); |
| 525 | return msystem_msys; |
| 526 | } |
| 527 | if (msystem == "MINGW32"_s) { |
| 528 | static std::string const msystem_mingw32 = |
| 529 | FindMSYSTEM_PREFIX({ "/mingw32", "/mingw" }); |
| 530 | return msystem_mingw32; |
| 531 | } |
| 532 | if (msystem == "MINGW64"_s) { |
| 533 | static std::string const msystem_mingw64 = |
| 534 | FindMSYSTEM_PREFIX({ "/mingw64" }); |
| 535 | return msystem_mingw64; |
| 536 | } |
| 537 | if (msystem == "UCRT64"_s) { |
| 538 | static std::string const msystem_ucrt64 = |
| 539 | FindMSYSTEM_PREFIX({ "/ucrt64" }); |
| 540 | return msystem_ucrt64; |
| 541 | } |
| 542 | if (msystem == "CLANG32"_s) { |
| 543 | static std::string const msystem_clang32 = |
| 544 | FindMSYSTEM_PREFIX({ "/clang32" }); |
| 545 | return msystem_clang32; |
| 546 | } |
| 547 | if (msystem == "CLANG64"_s) { |
| 548 | static std::string const msystem_clang64 = |
| 549 | FindMSYSTEM_PREFIX({ "/clang64" }); |
| 550 | return msystem_clang64; |
| 551 | } |
| 552 | if (msystem == "CLANGARM64"_s) { |
| 553 | static std::string const msystem_clangarm64 = |
| 554 | FindMSYSTEM_PREFIX({ "/clangarm64" }); |
| 555 | return msystem_clangarm64; |
| 556 | } |
| 557 | return {}; |
| 558 | } |
| 559 | |
| 560 | cm::optional<std::string> GetWindowsValue(cmExecutionStatus& status, |
| 561 | std::string const& key) |
no test coverage detected
searching dependent graphs…