|
From: <sv...@op...> - 2025-11-13 16:34:14
|
Author: manx Date: Thu Nov 13 17:34:02 2025 New Revision: 24457 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=24457 Log: [Fix] build: premake: VS2026: VS2026 warns when using older SDK versions. Use the newest one. Modified: trunk/OpenMPT/build/premake/premake-defaults.lua trunk/OpenMPT/build/premake/premake.lua Modified: trunk/OpenMPT/build/premake/premake-defaults.lua ============================================================================== --- trunk/OpenMPT/build/premake/premake-defaults.lua Thu Nov 13 17:13:35 2025 (r24456) +++ trunk/OpenMPT/build/premake/premake-defaults.lua Thu Nov 13 17:34:02 2025 (r24457) @@ -386,13 +386,7 @@ systemversion "10.0.26100.0" end filter { "action:vs2026" } - if MPT_WIN_BEFORE(MPT_WIN["10"]) then - systemversion "10.0.22621.0" - elseif MPT_WIN_BEFORE(MPT_WIN["11"]) then - systemversion "10.0.22621.0" - else - systemversion "10.0.26100.0" - end + systemversion "10.0.26100.0" filter {} end Modified: trunk/OpenMPT/build/premake/premake.lua ============================================================================== --- trunk/OpenMPT/build/premake/premake.lua Thu Nov 13 17:13:35 2025 (r24456) +++ trunk/OpenMPT/build/premake/premake.lua Thu Nov 13 17:34:02 2025 (r24457) @@ -654,11 +654,10 @@ premake.w('<AppContainerApplication>true</AppContainerApplication>') premake.w('<ApplicationType>Windows Store</ApplicationType>') premake.w('<ApplicationTypeRevision>10.0</ApplicationTypeRevision>') + premake.w('<WindowsTargetPlatformVersion Condition=" \'$(WindowsTargetPlatformVersion)\' == \'\' ">10.0.26100.0</WindowsTargetPlatformVersion>') if MPT_WIN_AT_LEAST(MPT_WIN["11"]) then - premake.w('<WindowsTargetPlatformVersion Condition=" \'$(WindowsTargetPlatformVersion)\' == \'\' ">10.0.26100.0</WindowsTargetPlatformVersion>') premake.w('<WindowsTargetPlatformMinVersion>10.0.22631.0</WindowsTargetPlatformMinVersion>') elseif MPT_WIN_AT_LEAST(MPT_WIN["10"]) then - premake.w('<WindowsTargetPlatformVersion Condition=" \'$(WindowsTargetPlatformVersion)\' == \'\' ">10.0.22621.0</WindowsTargetPlatformVersion>') premake.w('<WindowsTargetPlatformMinVersion>10.0.19045.0</WindowsTargetPlatformMinVersion>') end elseif _ACTION == 'vs2022' then |