mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
ENH: Added options CMAKE_SKIP_PREPROCESSED_SOURCE_RULES and CMAKE_SKIP_ASSEMBLY_SOURCE_RULES to allow projects to disable generation of .E and .S rules.
This commit is contained in:
@@ -212,8 +212,14 @@ public:
|
||||
/** Get whether to create rules to generate preprocessed and
|
||||
assembly sources. This could be converted to a variable lookup
|
||||
later. */
|
||||
bool GetCreatePreprocessedSourceRules() { return true; }
|
||||
bool GetCreateAssemblySourceRules() { return true; }
|
||||
bool GetCreatePreprocessedSourceRules()
|
||||
{
|
||||
return !this->SkipPreprocessedSourceRules;
|
||||
}
|
||||
bool GetCreateAssemblySourceRules()
|
||||
{
|
||||
return !this->SkipAssemblySourceRules;
|
||||
}
|
||||
|
||||
protected:
|
||||
// these two methods just compute reasonable values for LibraryOutputPath
|
||||
@@ -324,6 +330,12 @@ private:
|
||||
beginning of generation to avoid many duplicate lookups. */
|
||||
bool ColorMakefile;
|
||||
|
||||
/* Copy the setting of CMAKE_SKIP_PREPROCESSED_SOURCE_RULES and
|
||||
CMAKE_SKIP_ASSEMBLY_SOURCE_RULES at the beginning of generation to
|
||||
avoid many duplicate lookups. */
|
||||
bool SkipPreprocessedSourceRules;
|
||||
bool SkipAssemblySourceRules;
|
||||
|
||||
std::map<cmStdString,std::vector<cmTarget *> > LocalObjectFiles;
|
||||
|
||||
/* does the work for each target */
|
||||
|
||||
Reference in New Issue
Block a user