1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Projucer: Fixed an error when setting the macOS SDK to the current version

This commit is contained in:
ed 2019-06-10 12:28:32 +01:00
parent 88fecd196e
commit f58fe19815

View file

@ -1895,7 +1895,7 @@ public:
{
auto minVersion = (type == Target::AudioUnitv3PlugIn ? minimumAUv3SDKVersion : oldestDeploymentTarget);
for (int v = minVersion; v < currentSDKVersion; ++v)
for (int v = minVersion; v <= currentSDKVersion; ++v)
if (deploymentTarget == getSDKDisplayName (v))
return getVersionName (v);
@ -1904,7 +1904,7 @@ public:
String getOSXSDKVersion (const String& sdkVersion) const
{
for (int v = oldestSDKVersion; v < currentSDKVersion; ++v)
for (int v = oldestSDKVersion; v <= currentSDKVersion; ++v)
if (sdkVersion == getSDKDisplayName (v))
return getSDKRootName (v);