mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-07 15:18:38 -06:00
Merge topic 'fix-CMAKE_DISABLE_SOURCE_CHANGES-top-dir'
60cb75e4a1 Fix CMAKE_DISABLE_SOURCE_CHANGES recognition of top of build tree
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2001
This commit is contained in:
@@ -2333,7 +2333,8 @@ bool cmMakefile::CanIWriteThisFile(std::string const& fileName) const
|
||||
}
|
||||
|
||||
return !cmSystemTools::IsSubDirectory(fileName, this->GetHomeDirectory()) ||
|
||||
cmSystemTools::IsSubDirectory(fileName, this->GetHomeOutputDirectory());
|
||||
cmSystemTools::IsSubDirectory(fileName, this->GetHomeOutputDirectory()) ||
|
||||
cmSystemTools::SameFile(fileName, this->GetHomeOutputDirectory());
|
||||
}
|
||||
|
||||
const char* cmMakefile::GetRequiredDefinition(const std::string& name) const
|
||||
|
||||
Reference in New Issue
Block a user