summaryrefslogtreecommitdiff
path: root/Modules/CompilerId
diff options
context:
space:
mode:
authorMichael Karcher <kitware@mkarcher.dialup.fu-berlin.de>2023-04-21 18:00:35 +0200
committerBrad King <brad.king@kitware.com>2023-04-25 13:47:17 -0400
commit850ee280e0bb726771ea14f247ba1524b0c3dd64 (patch)
tree997e8cdf32d78c28dcd897ef5b727df372c0f2e8 /Modules/CompilerId
parent5d5b6c741da414d7d62ac9681604cc95a1275c51 (diff)
downloadcmake-850ee280e0bb726771ea14f247ba1524b0c3dd64.tar.gz
VS/Android: Set API level explicitly during compiler identification
VS2022 defaults to API 31 in 64-bit builds. This breaks if you combine VS2022 with an older Android NDK.
Diffstat (limited to 'Modules/CompilerId')
-rw-r--r--Modules/CompilerId/VS-10.vcxproj.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CompilerId/VS-10.vcxproj.in b/Modules/CompilerId/VS-10.vcxproj.in
index 9bd618c95a..fa324d8214 100644
--- a/Modules/CompilerId/VS-10.vcxproj.in
+++ b/Modules/CompilerId/VS-10.vcxproj.in
@@ -26,6 +26,7 @@
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@id_platform@'" Label="Configuration">
<ConfigurationType>@id_config_type@</ConfigurationType>
@id_toolset@
+ @id_api_level@
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />