| 2156 | #endif |
| 2157 | |
| 2158 | void cmake::SetHomeDirectoryViaCommandLine(std::string const& path) |
| 2159 | { |
| 2160 | if (path.empty()) { |
| 2161 | return; |
| 2162 | } |
| 2163 | |
| 2164 | auto prev_path = this->GetHomeDirectory(); |
| 2165 | if (prev_path != path && !prev_path.empty() && |
| 2166 | this->State->GetRole() == cmState::Role::Project) { |
| 2167 | this->IssueMessage( |
| 2168 | MessageType::WARNING, |
| 2169 | cmStrCat("Ignoring extra path from command line:\n \"", prev_path, '"')); |
| 2170 | } |
| 2171 | this->SetHomeDirectory(path); |
| 2172 | } |
| 2173 | |
| 2174 | void cmake::SetHomeDirectory(std::string const& dir) |
| 2175 | { |
no test coverage detected