MCPcopy Create free account
hub / github.com/Kitware/CMake / CheckManagedType

Method CheckManagedType

Source/cmGeneratorTarget.cxx:5695–5715  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5693}
5694
5695cmGeneratorTarget::ManagedType cmGeneratorTarget::CheckManagedType(
5696 std::string const& propval) const
5697{
5698 // The type of the managed assembly (mixed unmanaged C++ and C++/CLI,
5699 // or only C++/CLI) does only depend on whether the property is an empty
5700 // string or contains any value at all. In Visual Studio generators
5701 // this propval is prepended with /clr[:] which results in:
5702 //
5703 // 1. propval does not exist: no /clr flag, unmanaged target, has import
5704 // lib
5705 // 2. empty propval: add /clr as flag, mixed unmanaged/managed
5706 // target, has import lib
5707 // 3. netcore propval: add /clr:netcore as flag, mixed
5708 // unmanaged/managed target, has import lib.
5709 // 4. any value (safe,pure): add /clr:[propval] as flag, target with
5710 // managed code only, no import lib
5711 if (propval.empty() || propval == "netcore") {
5712 return ManagedType::Mixed;
5713 }
5714 return ManagedType::Managed;
5715}
5716
5717cmGeneratorTarget::ManagedType cmGeneratorTarget::GetManagedType(
5718 std::string const& config) const

Callers 2

ComputeImportInfoMethod · 0.95
GetManagedTypeMethod · 0.95

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected