I began using experimental::filesystem when it had just come out and I was advised to link in stdc++fs using target_link_libraries(MyTarget stdc++fs) in CMake. My programme builds either way but may I be breaking something/ doing something unnecessary if I leave out the extra link command?
This question here was asked three years ago and seems to assume that linking in stdc++fs was necessary.
Edit: compiler version is g++-9 (Homebrew GCC 9.3.0_1) 9.3.0 and CMake version is 3.16.
Many thanks!