mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
BUG: Don't generate build rules for header files.
This commit is contained in:
1 parent
1859209282
commit
a9cdcba660
3 files changed
+13
-2
No files matched your search
@@ -178,7 +178,11 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||
const cmSourceFile& source,
|
||||
const char* extraCompileFlags,
|
||||
bool shared)
|
||||
{
|
||||
{
|
||||
// Header files shouldn't have build rules.
|
||||
if(source.IsAHeaderFileOnly())
|
||||
return;
|
||||
|
||||
std::string comment = "Build ";
|
||||
std::string objectFile = std::string(shortName) +
|
||||
this->GetOutputExtension(source.GetSourceExtension().c_str());
|
||||
|
||||
@@ -356,6 +356,10 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||
const char* extraCompileFlags,
|
||||
bool shared)
|
||||
{
|
||||
// Header files shouldn't have build rules.
|
||||
if(source.IsAHeaderFileOnly())
|
||||
return;
|
||||
|
||||
std::string comment = "Build ";
|
||||
std::string objectFile = std::string(shortName) +
|
||||
this->GetOutputExtension(source.GetSourceExtension().c_str());
|
||||
|
||||
@@ -1594,7 +1594,10 @@ OutputBuildObjectFromSource(std::ostream& fout,
|
||||
const char* extraCompileFlags,
|
||||
bool shared)
|
||||
{
|
||||
|
||||
// Header files shouldn't have build rules.
|
||||
if(source.IsAHeaderFileOnly())
|
||||
return;
|
||||
|
||||
std::string comment = "Build ";
|
||||
std::string objectFile = std::string(shortName) + m_ObjectFileExtension;
|
||||
comment += objectFile + " From ";
|
||||
|
||||
Reference in new issue
Block a user