| 23 | |
| 24 | namespace { |
| 25 | void setENV(std::string const& var, cm::string_view val) |
| 26 | { |
| 27 | #ifdef _WIN32 |
| 28 | if (val.empty()) { |
| 29 | // FIXME(#27285): On Windows, PutEnv previously treated empty as unset. |
| 30 | // KWSys was fixed, but we need to retain the behavior for compatibility. |
| 31 | cmSystemTools::UnPutEnv(var); |
| 32 | return; |
| 33 | } |
| 34 | #endif |
| 35 | cmSystemTools::PutEnv(cmStrCat(var, '=', val)); |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // cmSetCommand |
no test coverage detected
searching dependent graphs…