Skip to content

Commit

Permalink
fix relPath
Browse files Browse the repository at this point in the history
  • Loading branch information
dimitre committed Jul 13, 2023
1 parent a8536ad commit 534af5d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions commandLine/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ void recursiveUpdate(const fs::path & path, ofTargetPlatform target) {
}
setOFRoot(ofPath);
fs::current_path(path);
alert ("ofRoot " + ofPath.string());
alert ("cwd " + path.string());
// alert ("ofRoot " + ofPath.string());
// alert ("cwd " + path.string());

updateProject(path, target, false);
}
Expand Down
4 changes: 3 additions & 1 deletion commandLine/src/projects/xcodeProject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,13 @@ bool xcodeProject::createProjectFile(){
}

// Calculate OF Root in relation to each project (recursively);
fs::path relRoot;
fs::path relRoot { getOFRoot() };
if (ofIsPathInPath(fs::current_path(), getOFRoot())) {
auto relRoot = fs::relative((fs::current_path() / getOFRoot()), projectDir);
}



if (!fs::equivalent(relRoot, "../../..")) {
string root = relRoot.string();
alert ("root = " + root);
Expand Down

0 comments on commit 534af5d

Please sign in to comment.