@@ -263,13 +263,13 @@ bool baseProject::save(){
263263 if ( projectDir.string ().rfind (getOFRoot ().string (), 0 ) == 0 ) {
264264 path = getOFRelPath (projectDir);
265265 }
266- saveConfig << " OF_ROOT = " << path.string () << std::endl;
266+ saveConfig << " OF_ROOT = " << path.generic_string () << std::endl;
267267 }
268268 // replace this section with our external paths
269269 else if ( extSrcPaths.size () && str.rfind (" # PROJECT_EXTERNAL_SOURCE_PATHS =" , 0 ) == 0 ){
270270 for (int d = 0 ; d < extSrcPaths.size (); d++){
271- ofLog (OF_LOG_VERBOSE) << " adding PROJECT_EXTERNAL_SOURCE_PATHS to config" << extSrcPaths[d] << std::endl;
272- saveConfig << " PROJECT_EXTERNAL_SOURCE_PATHS" << (d == 0 ? " = " : " += " ) << extSrcPaths[d] << std::endl;
271+ ofLog (OF_LOG_VERBOSE) << " adding PROJECT_EXTERNAL_SOURCE_PATHS to config" << extSrcPaths[d]. generic_string () << std::endl;
272+ saveConfig << " PROJECT_EXTERNAL_SOURCE_PATHS" << (d == 0 ? " = " : " += " ) << extSrcPaths[d]. generic_string () << std::endl;
273273 }
274274 } else {
275275 saveConfig << str << std::endl;
@@ -519,7 +519,7 @@ void baseProject::addSrcRecursively(const fs::path & srcPath){
519519 fs::path base = srcPath.parent_path ();
520520// alert("base = " + base.string());
521521
522- extSrcPaths.emplace_back (srcPath. string () );
522+ extSrcPaths.emplace_back (srcPath);
523523 vector < fs::path > srcFilesToAdd;
524524 getFilesRecursively (srcPath, srcFilesToAdd);
525525// bool isRelative = ofIsPathInPath(fs::absolute(srcPath), getOFRoot());
0 commit comments