@@ -146,7 +146,7 @@ void getFilesRecursively(const fs::path & path, std::vector < string > & fileNam
146146 getFilesRecursively (f, fileNames);
147147 } else {
148148 // FIXME - update someday to fs::path
149- fileNames.emplace_back (f);
149+ fileNames.emplace_back (f. string () );
150150 }
151151 }
152152}
@@ -165,7 +165,7 @@ void getFilesRecursively(const fs::path & path, std::vector < fs::path > & fileN
165165 getFilesRecursively (f, fileNames);
166166 }
167167 } else {
168- fileNames.emplace_back (f);
168+ fileNames.emplace_back (f. string () );
169169 }
170170 }
171171}
@@ -264,7 +264,7 @@ void getPropsRecursively(const fs::path & path, std::vector < std::string > & pr
264264 } else {
265265 if (f.extension () == " .props" ) {
266266// cout << f << endl;
267- props.emplace_back (f);
267+ props.emplace_back (f. string () );
268268 }
269269 }
270270 }
@@ -283,7 +283,7 @@ void getDllsRecursively(const fs::path & path, std::vector < std::string > & dll
283283 if (f.extension () == " .dll" ) {
284284 cout << " ---->> getDLLs " << f << endl;;
285285
286- dlls.emplace_back (f);
286+ dlls.emplace_back (f. string () );
287287 }
288288 }
289289 }
@@ -295,7 +295,7 @@ void getLibsRecursively(const fs::path & path, std::vector < std::string > & lib
295295 if (!fs::is_directory (path)) return ;
296296 for (const auto & entry : fs::directory_iterator (path)) {
297297 auto f = entry.path ();
298- std::vector<std::string> splittedPath = ofSplitString (f, fs::path (" /" ).make_preferred ().string ());
298+ std::vector<std::string> splittedPath = ofSplitString (f. string () , fs::path (" /" ).make_preferred ().string ());
299299
300300// ofFile temp(dir.getFile(i));
301301 std::string ext = " " ;
@@ -334,12 +334,12 @@ void getLibsRecursively(const fs::path & path, std::vector < std::string > & lib
334334 if (ext == " a" || ext == " lib" || ext == " dylib" || ext == " so" || (ext == " dll" && platform != " vs" )){
335335 if (platformFound){
336336// libLibs.emplace_back( f, arch, target );
337- libLibs.push_back ({ f, arch, target });
337+ libLibs.push_back ({ f. string () , arch, target});
338338
339339 // TODO: THEO hack
340340 if ( platform == " ios" ){ // this is so we can add the osx libs for the simulator builds
341341
342- std::string currentPath = f;
342+ std::string currentPath = f. string () ;
343343
344344 // TODO: THEO double hack this is why we need install.xml - custom ignore ofxOpenCv
345345 if ( currentPath.find (" ofxOpenCv" ) == std::string::npos ){
@@ -352,7 +352,7 @@ void getLibsRecursively(const fs::path & path, std::vector < std::string > & lib
352352 }
353353 }
354354 } else if (ext == " h" || ext == " hpp" || ext == " c" || ext == " cpp" || ext == " cc" || ext == " cxx" || ext == " m" || ext == " mm" ){
355- libFiles.emplace_back (f);
355+ libFiles.emplace_back (f. string () );
356356 }
357357 }
358358 }
0 commit comments