Skip to content

Commit

Permalink
Use std filesystem when building with Clang on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed Jan 24, 2025
1 parent 477f885 commit 9905dc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FilesystemDetect.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

# checking if compiler supports the standard filesystem library

if( MINGW OR BIT7Z_DISABLE_USE_STD_FILESYSTEM )
if( ( MINGW AND CMAKE_CXX_COMPILER_ID MATCHES "GNU" ) OR BIT7Z_DISABLE_USE_STD_FILESYSTEM )
# Some versions of MinGW have a buggy std::filesystem that doesn't correctly handle paths with unicode characters,
# so we are always using the ghc::filesystem library.
set( USE_STANDARD_FILESYSTEM OFF )
Expand Down

0 comments on commit 9905dc5

Please sign in to comment.