From d6b26e174ca6fc0d0f8d45042bb8ab270e095846 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Sat, 7 Oct 2023 15:50:17 +0200 Subject: [PATCH] (macOS) Disabled some annoying compiler warnings regarding invalid UTF characters in the FreeImage header files --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7981e4ffd..3eb7d6bf0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -207,6 +207,9 @@ else() else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -O2 -DNDEBUG -Wall -Wpedantic -Wsign-compare -Wnarrowing -Wmissing-field-initializers -Wunused-macros") if(APPLE) + if(CMAKE_SYSTEM_PROCESSOR MATCHES arm) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-invalid-utf8") + endif() set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2") else() set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -O2 -s")