summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-07-21 13:22:13 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-07-21 13:22:13 (GMT)
commitce597a022b32231559c75843f4df6108120c5d57 (patch)
tree88491e1681a2b401b70f7440596a8f5a3c471082 /Source/cmMakefile.cxx
parentb953d526d10d41b631b82f576eac12d9cdfee6b7 (diff)
parentcff2dc34f98fd0960a5ec1b37d9bf5f937c31efc (diff)
downloadCMake-ce597a022b32231559c75843f4df6108120c5d57.zip
CMake-ce597a022b32231559c75843f4df6108120c5d57.tar.gz
CMake-ce597a022b32231559c75843f4df6108120c5d57.tar.bz2
Merge topic 'minor-cleanups'
cff2dc34 cmLocalUnixMakefileGenerator3: Port away from the Parent. 5505bff7 cmMakefile: Add include which we use. 2007d11c cmState: Remove unused variable. a622b829 cmGetCMakePropertyCommand: Clean up VARIABLES handling. 52f22616 cmListFileBacktrace: Constify API. fc1c7cf8 Genex: Store a backtrace, not a pointer to one. 4dc45707 cmMakefile: Fix indentation. 12c82fd8 cmMakefile: Remove dead code. f19653eb CodeLite: Remove unused code.
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx27
1 files changed, 9 insertions, 18 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 2216264..62d8002 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -19,6 +19,7 @@
#include "cmLocalGenerator.h"
#include "cmCommands.h"
#include "cmState.h"
+#include "cmOutputConverter.h"
#include "cmFunctionBlocker.h"
#include "cmListFileCache.h"
#include "cmCommandArgumentParserHelper.h"
@@ -4150,10 +4151,10 @@ void cmMakefile::SetProperty(const std::string& prop, const char* value)
if (prop == "INCLUDE_DIRECTORIES")
{
this->IncludeDirectoriesEntries.clear();
- if (!value)
- {
- return;
- }
+ if (!value)
+ {
+ return;
+ }
cmListFileBacktrace lfbt = this->GetBacktrace();
this->IncludeDirectoriesEntries.push_back(
cmValueWithOrigin(value, lfbt));
@@ -4162,10 +4163,10 @@ void cmMakefile::SetProperty(const std::string& prop, const char* value)
if (prop == "COMPILE_OPTIONS")
{
this->CompileOptionsEntries.clear();
- if (!value)
- {
- return;
- }
+ if (!value)
+ {
+ return;
+ }
cmListFileBacktrace lfbt = this->GetBacktrace();
this->CompileOptionsEntries.push_back(cmValueWithOrigin(value, lfbt));
return;
@@ -4189,16 +4190,6 @@ void cmMakefile::SetProperty(const std::string& prop, const char* value)
return;
}
- if ( prop == "ADDITIONAL_MAKE_CLEAN_FILES" )
- {
- // This property is not inherrited
- if ( strcmp(this->GetCurrentSourceDirectory(),
- this->GetCurrentSourceDirectory()) != 0 )
- {
- return;
- }
- }
-
this->Properties.SetProperty(prop, value);
}