Skip to content

Commit 2ac2852

Browse files
committed
cleanup
1 parent 34fdd59 commit 2ac2852

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

commandLine/src/projects/xcodeProject.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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");

0 commit comments

Comments
 (0)