File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -220,11 +220,10 @@ bool xcodeProject::loadProjectFile() { //base
220220 addCommand (" Set :objects:E4B69B5B0A3A1756003C02F2:path string " + projectName + " Debug.app" );
221221 }
222222
223- // if ofRoot is not relative to the project path,
224- // set correct addons and openFrameworks folders
223+ // Next block updates ofPath in xcode addons and openframeworks folder
224+ // only if it is not the usual ../../.. path
225225
226226 bool updateOFPath = false ;
227-
228227 fs::path of = getOFRoot ();
229228 if (!ofIsPathInPath (fs::current_path (), getOFRoot ())) {
230229 updateOFPath = true ;
@@ -237,7 +236,6 @@ bool xcodeProject::loadProjectFile() { //base
237236 of = fs::relative (getOFRoot (), fs::current_path ());
238237 }
239238 }
240-
241239 if (updateOFPath) {
242240 addCommand (" Set :objects:" + folderUUID[" openFrameworks" ] + " :path string " + of.string () + " /libs/openFrameworks" );
243241 addCommand (" Set :objects:" + folderUUID[" addons" ] + " :path string " + of.string () + " /addons" );
You can’t perform that action at this time.
0 commit comments