Skip to content

Commit

Permalink
support MINGW (#3022)
Browse files Browse the repository at this point in the history
Under Windows 10, compiling with MINGW64 will report an error similar to #1581
  • Loading branch information
NU-LL authored Feb 25, 2024
1 parent 134f919 commit d387fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ endif()

set(CMAKE_CXX_EXTENSIONS OFF)

if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR CMAKE_SYSTEM_NAME MATCHES "MSYS")
if(CMAKE_SYSTEM_NAME MATCHES "CYGWIN" OR CMAKE_SYSTEM_NAME MATCHES "MSYS" OR CMAKE_SYSTEM_NAME MATCHES "MINGW")
set(CMAKE_CXX_EXTENSIONS ON)
endif()

Expand Down

0 comments on commit d387fdf

Please sign in to comment.