diff options
author | Stephen Kelly <steveire@gmail.com> | 2013-02-07 18:31:23 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2013-02-07 20:57:35 (GMT) |
commit | df74bc34d4219a8d6e63ec7e41a9ca4fbe355581 (patch) | |
tree | 8227bff697c5f41beadb02c0df34788b869b52aa /Source/cmTarget.cxx | |
parent | d4e5c6787c40e27394c336730f59d878a81d1991 (diff) | |
download | CMake-df74bc34d4219a8d6e63ec7e41a9ca4fbe355581.zip CMake-df74bc34d4219a8d6e63ec7e41a9ca4fbe355581.tar.gz CMake-df74bc34d4219a8d6e63ec7e41a9ca4fbe355581.tar.bz2 |
Only append build interface include dirs to particular targets.
We shouldn't set the property on all custom targets.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index f55999f..2945173 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -2714,6 +2714,13 @@ void cmTarget::AppendProperty(const char* prop, const char* value, //---------------------------------------------------------------------------- void cmTarget::AppendBuildInterfaceIncludes() { + if(this->GetType() != cmTarget::SHARED_LIBRARY && + this->GetType() != cmTarget::STATIC_LIBRARY && + this->GetType() != cmTarget::MODULE_LIBRARY && + !this->IsExecutableWithExports()) + { + return; + } if (this->BuildInterfaceIncludesAppended) { return; |