Skip to content

Commit

Permalink
Detect MSYS2 like Makefile does.
Browse files Browse the repository at this point in the history
  • Loading branch information
alef committed Jan 23, 2024
1 parent 9b5706c commit b76120b
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 @@ -97,7 +97,7 @@ endif ()

include(CheckCXXCompilerFlag)

if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(DEFINED ENV{MSYSTEM})
set(MSYS2 True)
add_definitions(-DMSYS2)
endif()
Expand Down

0 comments on commit b76120b

Please sign in to comment.