Skip to content

Commit

Permalink
Detect running under MSYS and MINGW
Browse files Browse the repository at this point in the history
  • Loading branch information
alef committed Jan 23, 2024
1 parent f64a75c commit 24e3a7a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ endif ()

include(CheckCXXCompilerFlag)

if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Windows" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
set(MSYS2 True)
endif()
#FIXME: Add dest build choice: m32 for 32 bit or m64 for 64 bit version
#add_definitions("-m32")
#SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m32")
Expand Down

0 comments on commit 24e3a7a

Please sign in to comment.