1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-14 00:14:18 +00:00

Projucer: Don't assert when no icons are specified in Code::Blocks exporter

This commit is contained in:
ed 2020-07-21 15:50:51 +01:00
parent 6a9f9cd550
commit 450ac8ade5

View file

@ -781,7 +781,10 @@ private:
if (hasResourceFile())
{
const auto iconFile = getTargetFolder().getChildFile ("icon.ico");
build_tools::writeMacIcon (getIcons(), iconFile);
if (! build_tools::asArray (getIcons()).isEmpty())
build_tools::writeMacIcon (getIcons(), iconFile);
auto rcFile = getTargetFolder().getChildFile ("resources.rc");
MSVCProjectExporterBase::createRCFile (project, iconFile, rcFile);