Undefined reference error with new filesystem library and clang++7
filesystem is still experimental and requires an extra library. If you are using libstdc++, link with -lstdc++fs (or target_link_libraries(${PROJECT_NAME} stdc++fs)). For libc++, use -lc++fs (similar for the CMake command).