summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2013-07-25 07:12:28 (GMT)
committerStephen Kelly <steveire@gmail.com>2013-07-26 14:58:25 (GMT)
commitb8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9 (patch)
tree2e1bf0429e6c4413eddbfe064f97bf6b67ef3ce5 /Source/cmTarget.h
parentc8a10ba9ad8707cfb892ca812efa2f6899adf60b (diff)
downloadCMake-b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9.zip
CMake-b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9.tar.gz
CMake-b8dc7fad23a0b6867dae30e3cd6a23c82d6cfac9.tar.bz2
Genex: Disallow LINKER_LANGUAGE only when used on a static library.
For shared libraries and executables, the linker_language is indepenedent of the linked libraries.
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index 24a71ed..27b74ca 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -549,6 +549,9 @@ public:
void FinalizeSystemIncludeDirectories();
+ bool LinkLanguagePropagatesToDependents() const
+ { return this->TargetTypeValue == STATIC_LIBRARY; }
+
private:
// The set of include directories that are marked as system include
// directories.