mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-11 16:32:14 -06:00
cmGeneratorTarget: make GetManagedType() return 'Native' for static targets
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user