BUG: Fix logic. If the variable is not set, then it is always ok to write the file
This commit is contained in:
parent
ee1975570e
commit
a2d8447fb9
|
@ -1324,7 +1324,7 @@ bool cmMakefile::CanIWriteThisFile(const char* fileName)
|
|||
{
|
||||
if ( !this->IsOn("CMAKE_DISABLE_SOURCE_CHANGES") )
|
||||
{
|
||||
return 0;
|
||||
return true;
|
||||
}
|
||||
// If we are doing an in-source build, than the test will always fail
|
||||
if ( cmSystemTools::SameFile(this->GetHomeDirectory(), this->GetHomeOutputDirectory()) )
|
||||
|
|
Loading…
Reference in New Issue