VS: Add AndroidAPILevel element to generated project files

Map `CMAKE_SYSTEM_VERSION` to the Android Target API Level for Visual
Studio projects.

Fixes: #22886
This commit is contained in:
Benjamín de la Fuente Ranea
2022-06-08 06:37:20 +02:00
committed by Brad King
parent 031fa14b7e
commit 9d6a080421
@@ -1639,6 +1639,10 @@ void cmVisualStudio10TargetGenerator::WriteAndroidConfigurationValues(
e1.Element("UseOfStl", *stlType);
}
}
std::string const& apiLevel = gg->GetSystemVersion();
if (!apiLevel.empty()) {
e1.Element("AndroidAPILevel", cmStrCat("android-", apiLevel));
}
}
void cmVisualStudio10TargetGenerator::WriteCustomCommands(Elem& e0)