Skip to content

Commit f823e60

Browse files
authored
Fix paths in VS2019 (#328)
1 parent 272666f commit f823e60

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ofxProjectGenerator/src/projects/visualStudioProject.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ bool visualStudioProject::createProjectFile(){
3030
findandreplaceInTexfile(user,"emptyExample",projectName);
3131
findandreplaceInTexfile(project,"emptyExample",projectName);
3232

33-
std::string relRoot = getOFRelPath(ofFilePath::removeTrailingSlash(projectDir));
33+
std::string relRoot = getOFRelPath(projectDir.string());
34+
3435
if (relRoot != "../../../"){
3536

3637
std::string relRootWindows = relRoot;

ofxProjectGenerator/src/utils/Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ of::filesystem::path getOFRelPathFS(const of::filesystem::path & from) {
412412
}
413413

414414
std::string getOFRelPath(const std::string & from) {
415-
return getOFRelPathFS(from).string();
415+
return ofFilePath::addTrailingSlash(getOFRelPathFS(from).string());
416416
}
417417

418418
bool checkConfigExists(){

0 commit comments

Comments
 (0)