mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
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:
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)
|
||||
|
||||
Reference in New Issue
Block a user