There was a typo in the if condition which probably always made it true. Linking to to -lstdc++fs is needed until g++-9, see e.g. https://gitlab.kitware.com/cmake/cmake/issues/17834
There was a typo in the if condition which probably always made it true. Linking to to -lstdc++fs is needed until g++-9, see e.g. https://gitlab.kitware.com/cmake/cmake/issues/17834