We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 47d443f commit 999c7abCopy full SHA for 999c7ab
ofxProjectGenerator/src/projects/baseProject.cpp
@@ -217,7 +217,13 @@ bool baseProject::save(){
217
218
//add the of root path
219
if( str.rfind("# OF_ROOT =", 0) == 0 ){
220
- saveConfig << "OF_ROOT = " + getOFRoot() << endl;
+
221
+ auto path = getOFRoot();
222
+ if( projectDir.string().rfind(getOFRoot(),0) == 0 ){
223
+ path = getOFRelPath(projectDir);
224
+ }
225
226
+ saveConfig << "OF_ROOT = " << path << endl;
227
}
228
// replace this section with our external paths
229
else if( extSrcPaths.size() && str.rfind("# PROJECT_EXTERNAL_SOURCE_PATHS =", 0) == 0 ){
0 commit comments