BUG: Do not force HEADER_FILE_ONLY off if the user has already set it on.
This commit is contained in:
parent
678bccc64b
commit
37e8c11827
|
@ -222,10 +222,16 @@ void cmSourceFile::CheckExtension()
|
||||||
if(std::find(hdrExts.begin(), hdrExts.end(), this->Extension) ==
|
if(std::find(hdrExts.begin(), hdrExts.end(), this->Extension) ==
|
||||||
hdrExts.end())
|
hdrExts.end())
|
||||||
{
|
{
|
||||||
this->SetProperty("HEADER_FILE_ONLY", "0");
|
// This is not a known header file extension. Mark it as not a
|
||||||
|
// header unless the user has already explicitly set the property.
|
||||||
|
if(!this->GetProperty("HEADER_FILE_ONLY"))
|
||||||
|
{
|
||||||
|
this->SetProperty("HEADER_FILE_ONLY", "0");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
// This is a known header file extension. The source cannot be compiled.
|
||||||
this->SetProperty("HEADER_FILE_ONLY", "1");
|
this->SetProperty("HEADER_FILE_ONLY", "1");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue