Skip to content

Commit

Permalink
support MINGW
Browse files Browse the repository at this point in the history
Under Windows 10, compiling with MINGW64 will report an error similar to gabime#1581
  • Loading branch information
NU-LL authored Feb 24, 2024
1 parent 134f919 commit 6a615d4
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 6a615d4

Please sign in to comment.