| 2326 | } |
| 2327 | |
| 2328 | bool cmMakefile::CanIWriteThisFile(std::string const& fileName) const |
| 2329 | { |
| 2330 | if (!this->IsOn("CMAKE_DISABLE_SOURCE_CHANGES")) { |
| 2331 | return true; |
| 2332 | } |
| 2333 | // If we are doing an in-source build, then the test will always fail |
| 2334 | if (cmSystemTools::SameFile(this->GetHomeDirectory(), |
| 2335 | this->GetHomeOutputDirectory())) { |
| 2336 | return !this->IsOn("CMAKE_DISABLE_IN_SOURCE_BUILD"); |
| 2337 | } |
| 2338 | |
| 2339 | return !cmSystemTools::IsSubDirectory(fileName, this->GetHomeDirectory()) || |
| 2340 | cmSystemTools::IsSubDirectory(fileName, this->GetHomeOutputDirectory()) || |
| 2341 | cmSystemTools::SameFile(fileName, this->GetHomeOutputDirectory()); |
| 2342 | } |
| 2343 | |
| 2344 | std::string const& cmMakefile::GetRequiredDefinition( |
| 2345 | std::string const& name) const |
no test coverage detected