summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-12-26 13:11:23 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-01-04 10:28:57 (GMT)
commit272a20f8e554d7c4136119f252f163bcfc64dac0 (patch)
tree91e65cdd375642ed4083bcfa5aa87f2eeba97ac1 /Source/cmMakefile.cxx
parent03d842a982267f75cf77810de2c693c36e58574c (diff)
downloadCMake-272a20f8e554d7c4136119f252f163bcfc64dac0.zip
CMake-272a20f8e554d7c4136119f252f163bcfc64dac0.tar.gz
CMake-272a20f8e554d7c4136119f252f163bcfc64dac0.tar.bz2
cmTarget: Don't update IMPORTED target compilation properties
The include_directories() and add_compile_options() commands should not append to the corresponding target property for IMPORTED targets. This is already the case for add_definitions().
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 30a1557..6883f57 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4045,8 +4045,8 @@ cmMakefile::AddImportedTarget(const char* name, cmTarget::TargetType type,
// Create the target.
cmsys::auto_ptr<cmTarget> target(new cmTarget);
target->SetType(type, name);
- target->SetMakefile(this);
target->MarkAsImported();
+ target->SetMakefile(this);
// Add to the set of available imported targets.
this->ImportedTargets[name] = target.get();