Umpire icon indicating copy to clipboard operation
Umpire copied to clipboard

`std::filesystem` incorrectly detected

Open msimberg opened this issue 3 years ago • 1 comments

I think the check for std::filesystem is currently insufficient. GCC 11 updated the default C++ standard to 17. When the check is done no C++ standard flags are passed to the compilation which makes it use the default of 17 and it concludes that std::filesystem is available. However, the default BLT_CXX_STD is C++14, which makes compilation then fail because std::filesystem isn't available in C++14 mode.

msimberg avatar Aug 12 '22 09:08 msimberg

@msimberg - can you please confirm that #781 fixes this issue for you?

davidbeckingsale avatar Aug 30 '22 14:08 davidbeckingsale

This may be relevant: with older libstdc++ libs may need to link against libstdc++fs, see https://gitlab.kitware.com/cmake/cmake/-/issues/17834 and https://github.com/vector-of-bool/CMakeCM/blob/master/modules/FindFilesystem.cmake

evaleev avatar Oct 18 '22 11:10 evaleev