Fix compile on mac.

pull/913/head
Adam Treat 1 year ago
parent b7d947b01d
commit fff2324a14

@ -28,10 +28,10 @@ LLM::LLM()
QString llmodelSearchPaths = QCoreApplication::applicationDirPath(); QString llmodelSearchPaths = QCoreApplication::applicationDirPath();
#if defined(Q_OS_MAC) #if defined(Q_OS_MAC)
const QString binDir = QCoreApplication::applicationDirPath() + "/../../../"; const QString binDir = QCoreApplication::applicationDirPath() + "/../../../";
if (directoryExists(binDir) if (directoryExists(binDir))
llmodelSearchPaths += ";" + binDir; llmodelSearchPaths += ";" + binDir;
const QString frameworksDir = QCoreApplication::applicationDirPath() + "/../Frameworks/"; const QString frameworksDir = QCoreApplication::applicationDirPath() + "/../Frameworks/";
if (directoryExists(frameworksDir) if (directoryExists(frameworksDir))
llmodelSearchPaths += ";" + frameworksDir; llmodelSearchPaths += ";" + frameworksDir;
#endif #endif
LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString()); LLModel::setImplementationsSearchPath(llmodelSearchPaths.toStdString());

Loading…
Cancel
Save