Skip to content

Commit

Permalink
fix cairo build on mingw x86_64 (#2323)
Browse files Browse the repository at this point in the history
  • Loading branch information
AliaksandrDziarkach authored Sep 5, 2024
1 parent d78d108 commit 5b79603
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cmake/setup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ if (APPLE)
string(APPEND CMAKE_CXX_FLAGS " -Wno-register")
endif()

if (MINGW)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=implicit-int")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error=incompatible-pointer-types -Wno-error=int-conversion -Wno-error=implicit-int")
endif()

list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")

# Compile flags
Expand Down

0 comments on commit 5b79603

Please sign in to comment.