From 5b79603fbb31ded2765fe03cea1e98deb8318aed Mon Sep 17 00:00:00 2001 From: Aliaksandr Dziarkach <18146690+AliaksandrDziarkach@users.noreply.github.com> Date: Thu, 5 Sep 2024 18:11:47 +0300 Subject: [PATCH] fix cairo build on mingw x86_64 (#2323) --- cmake/setup.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/setup.cmake b/cmake/setup.cmake index 11ea19ed72..d195a9f516 100644 --- a/cmake/setup.cmake +++ b/cmake/setup.cmake @@ -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