diff options
author | Brad King <brad.king@kitware.com> | 2009-10-05 13:06:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-10-05 13:06:44 (GMT) |
commit | daa2f3aa416b02e4abea0274312a44eca63c5860 (patch) | |
tree | 1d3b07b2338b3be662e55e2b880585933c65d320 /Source/cmTarget.h | |
parent | 78f08116287fb534bfb0bc2921fd3f5bac47ce93 (diff) | |
download | CMake-daa2f3aa416b02e4abea0274312a44eca63c5860.zip CMake-daa2f3aa416b02e4abea0274312a44eca63c5860.tar.gz CMake-daa2f3aa416b02e4abea0274312a44eca63c5860.tar.bz2 |
Combine duplicate code in target property methods
In cmTarget::SetProperty and cmTarget::AppendProperty we check whether
changing the property invalidates cached information. The check was
duplicated in the two methods, so this commit moves the check into a
helper method called from both.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 349d0e0..db49645 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -567,6 +567,8 @@ private: LinkImplementation& impl); void ComputeLinkClosure(const char* config, LinkClosure& lc); + void MaybeInvalidatePropertyCache(const char* prop); + // The cmMakefile instance that owns this target. This should // always be set. cmMakefile* Makefile; |