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

Projucer: Fix generating JUCE example PIPs with useLocalCopy = 0

This commit is contained in:
ed 2019-03-29 15:28:41 +00:00
parent adf74a8451
commit 479371eb8d

View file

@ -120,7 +120,7 @@ PIPGenerator::PIPGenerator (const File& pip, const File& output, const File& juc
&& pip.getParentDirectory().getParentDirectory().getFileName() == "PIPs");
outputDirectory = outputDirectory.getChildFile (metadata[Ids::name].toString());
useLocalCopy = metadata[Ids::useLocalCopy].toString().isNotEmpty() || isClipboard;
useLocalCopy = metadata[Ids::useLocalCopy].toString().trim().getIntValue() == 1 || isClipboard;
if (userModulesPath != File())
{
@ -355,7 +355,7 @@ Result PIPGenerator::setProjectSettings (ValueTree& jucerTree)
auto defines = metadata[Ids::defines].toString();
if (useLocalCopy && isJUCEExample (pipFile))
if (isJUCEExample (pipFile))
{
auto examplesDir = getExamplesDirectory();