diff --git a/gazebo/common/CMakeLists.txt b/gazebo/common/CMakeLists.txt index b9b3eca0e2..6e32435d61 100644 --- a/gazebo/common/CMakeLists.txt +++ b/gazebo/common/CMakeLists.txt @@ -266,10 +266,6 @@ if (UNIX AND NOT APPLE) target_link_libraries(gazebo_common PRIVATE rt) endif() -if (NOT APPLE) - target_link_libraries(gazebo_common PRIVATE stdc++fs) -endif() - if (HAVE_GTS) target_link_libraries(gazebo_common PRIVATE ${gts_LIBRARIES}) endif() diff --git a/gazebo/common/CommonIface.cc b/gazebo/common/CommonIface.cc index 295e8f04bc..d784ef81d4 100644 --- a/gazebo/common/CommonIface.cc +++ b/gazebo/common/CommonIface.cc @@ -31,9 +31,6 @@ #include #endif -#ifndef __APPLE__ -#include -#endif #include #include @@ -465,7 +462,7 @@ std::string common::asFullPath(const std::string &_uri, #else // Not a relative path, return unmodified if (_uri.find("://") != std::string::npos || - !std::filesystem::path(_uri).is_relative()) + !boost::filesystem::path(_uri).is_relative()) { return _uri; }