MCPcopy Create free account
hub / github.com/Kitware/CMake / PutEnv

Method PutEnv

Source/cmSystemTools.cxx:2133–2142  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2131}
2132
2133void cmSystemTools::EnvDiff::PutEnv(std::string const& env)
2134{
2135 auto const eq_loc = env.find('=');
2136 if (eq_loc != std::string::npos) {
2137 std::string name = env.substr(0, eq_loc);
2138 diff[name] = env.substr(eq_loc + 1);
2139 } else {
2140 this->UnPutEnv(env);
2141 }
2142}
2143
2144void cmSystemTools::EnvDiff::UnPutEnv(std::string const& env)
2145{

Callers 2

AppendEnvMethod · 0.95
ExecuteCMakeCommandMethod · 0.45

Calls 3

UnPutEnvMethod · 0.95
findMethod · 0.45
substrMethod · 0.45

Tested by

no test coverage detected