diff options
author | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-04-23 05:16:04 (GMT) |
---|---|---|
committer | Michael Stürmer <michael.stuermer@schaeffler.com> | 2018-05-07 05:20:45 (GMT) |
commit | 73ee599a8203271245ab7a55095eb92843768b54 (patch) | |
tree | 99984e219b254d703d06123a4b350c8eaaf1c36d /Source/cmGeneratorTarget.cxx | |
parent | 7489d9cb241f199471499e0952a13ea48fec1f9e (diff) | |
download | CMake-73ee599a8203271245ab7a55095eb92843768b54.zip CMake-73ee599a8203271245ab7a55095eb92843768b54.tar.gz CMake-73ee599a8203271245ab7a55095eb92843768b54.tar.bz2 |
cmGeneratorTarget: make GetManagedType() return 'Native' for static targets
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index bf5ff65..799ae95 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -5510,12 +5510,14 @@ cmGeneratorTarget::ManagedType cmGeneratorTarget::GetManagedType( const std::string& config) const { // Only libraries and executables can be managed targets. - if (this->GetType() != cmStateEnums::SHARED_LIBRARY && - this->GetType() != cmStateEnums::STATIC_LIBRARY && - this->GetType() != cmStateEnums::EXECUTABLE) { + if (this->GetType() > cmStateEnums::SHARED_LIBRARY) { return ManagedType::Undefined; } + if (this->GetType() == cmStateEnums::STATIC_LIBRARY) { + return ManagedType::Native; + } + // Check imported target. if (this->IsImported()) { if (cmGeneratorTarget::ImportInfo const* info = |