mirror of https://github.com/vitalif/openscad
Update to use boosty.h as older boost versions seem to be still in use.
parent
c5ce5a400c
commit
428790c771
|
@ -77,11 +77,11 @@ fs::path find_valid_path(const fs::path &sourcepath,
|
|||
const std::vector<std::string> *openfilenames)
|
||||
{
|
||||
if (boosty::is_absolute(localpath)) {
|
||||
if (check_valid(localpath, openfilenames)) return fs::canonical(localpath);
|
||||
if (check_valid(localpath, openfilenames)) return boosty::canonical(localpath);
|
||||
}
|
||||
else {
|
||||
fs::path fpath = sourcepath / localpath;
|
||||
if (fs::exists(fpath)) fpath = fs::canonical(fpath);
|
||||
if (fs::exists(fpath)) fpath = boosty::canonical(fpath);
|
||||
if (check_valid(fpath, openfilenames)) return fpath;
|
||||
fpath = search_libs(localpath);
|
||||
if (!fpath.empty() && check_valid(fpath, openfilenames)) return fpath;
|
||||
|
|
Loading…
Reference in New Issue