diff --git a/extras/Projucer/Source/Project Saving/jucer_ProjectExporter.cpp b/extras/Projucer/Source/Project Saving/jucer_ProjectExporter.cpp index 939e8ba793..ceb99060a7 100644 --- a/extras/Projucer/Source/Project Saving/jucer_ProjectExporter.cpp +++ b/extras/Projucer/Source/Project Saving/jucer_ProjectExporter.cpp @@ -306,15 +306,22 @@ void ProjectExporter::addSettingsForProjectType (const ProjectType& type) void ProjectExporter::addVSTPathsIfPluginOrHost() { - if (supportsVST() && (project.shouldBuildVST().getValue() || project.isVSTPluginHost())) + if (supportsVST()) { - makefileTargetSuffix = ".so"; - addVSTFolderToPath (false); + if (project.shouldBuildVST().getValue()) + makefileTargetSuffix = ".so"; + + if (project.shouldBuildVST().getValue() || project.isVSTPluginHost()) + addVSTFolderToPath (false); } - if (supportsVST3() && (project.shouldBuildVST3().getValue() || project.isVST3PluginHost())) + + if (supportsVST3()) { - makefileTargetSuffix = ".so"; - addVSTFolderToPath (true); + if (project.shouldBuildVST3().getValue()) + makefileTargetSuffix = ".so"; + + if (project.shouldBuildVST3().getValue() || project.isVST3PluginHost()) + addVSTFolderToPath (true); } }