|
|
@@ -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());
|