summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-08-09 13:56:52 (GMT)
committerBrad King <brad.king@kitware.com>2006-08-09 13:56:52 (GMT)
commit8c94be3f1831eb18a6cf77d31986ec45d0fe4831 (patch)
tree629bc87c01a43ce843a86aec2ec7d68ebc01c544 /Source/cmLocalUnixMakefileGenerator3.h
parent3d6100d7c6117b24e02db83be59ff0b5a1442f23 (diff)
downloadCMake-8c94be3f1831eb18a6cf77d31986ec45d0fe4831.zip
CMake-8c94be3f1831eb18a6cf77d31986ec45d0fe4831.tar.gz
CMake-8c94be3f1831eb18a6cf77d31986ec45d0fe4831.tar.bz2
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.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.h')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.h b/Source/cmLocalUnixMakefileGenerator3.h
index 7c6597a..89bb642 100644
--- a/Source/cmLocalUnixMakefileGenerator3.h
+++ b/Source/cmLocalUnixMakefileGenerator3.h
@@ -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 */