summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-04-25 12:57:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-04-25 12:57:08 (GMT)
commit22e483744290a27c17cca42e22ed47ef1b37007d (patch)
treeb8c2da8165f7384d5f0f6fce53f0fab287fe81ba /Source/cmMakefile.cxx
parent5a6c6292898fe238f3a5105133b8904209fbedaf (diff)
parent60cb75e4a196c97e55d535486e2d28630afb3f6e (diff)
downloadCMake-22e483744290a27c17cca42e22ed47ef1b37007d.zip
CMake-22e483744290a27c17cca42e22ed47ef1b37007d.tar.gz
CMake-22e483744290a27c17cca42e22ed47ef1b37007d.tar.bz2
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
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 18ba7aa..b6bf08b 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -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