BUG: Don't generate build rules for header files.
This commit is contained in:
parent
1859209282
commit
a9cdcba660
|
@ -179,6 +179,10 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||||
const char* extraCompileFlags,
|
const char* extraCompileFlags,
|
||||||
bool shared)
|
bool shared)
|
||||||
{
|
{
|
||||||
|
// Header files shouldn't have build rules.
|
||||||
|
if(source.IsAHeaderFileOnly())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string comment = "Build ";
|
std::string comment = "Build ";
|
||||||
std::string objectFile = std::string(shortName) +
|
std::string objectFile = std::string(shortName) +
|
||||||
this->GetOutputExtension(source.GetSourceExtension().c_str());
|
this->GetOutputExtension(source.GetSourceExtension().c_str());
|
||||||
|
|
|
@ -356,6 +356,10 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||||
const char* extraCompileFlags,
|
const char* extraCompileFlags,
|
||||||
bool shared)
|
bool shared)
|
||||||
{
|
{
|
||||||
|
// Header files shouldn't have build rules.
|
||||||
|
if(source.IsAHeaderFileOnly())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string comment = "Build ";
|
std::string comment = "Build ";
|
||||||
std::string objectFile = std::string(shortName) +
|
std::string objectFile = std::string(shortName) +
|
||||||
this->GetOutputExtension(source.GetSourceExtension().c_str());
|
this->GetOutputExtension(source.GetSourceExtension().c_str());
|
||||||
|
|
|
@ -1594,6 +1594,9 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||||
const char* extraCompileFlags,
|
const char* extraCompileFlags,
|
||||||
bool shared)
|
bool shared)
|
||||||
{
|
{
|
||||||
|
// Header files shouldn't have build rules.
|
||||||
|
if(source.IsAHeaderFileOnly())
|
||||||
|
return;
|
||||||
|
|
||||||
std::string comment = "Build ";
|
std::string comment = "Build ";
|
||||||
std::string objectFile = std::string(shortName) + m_ObjectFileExtension;
|
std::string objectFile = std::string(shortName) + m_ObjectFileExtension;
|
||||||
|
|
Loading…
Reference in New Issue