From 95845b16c96a06d52aaa02eedc64b73677e2cad3 Mon Sep 17 00:00:00 2001 From: David Adam Date: Sat, 26 Mar 2022 21:38:06 +0800 Subject: [PATCH] cmake: disable use of frameworks on macOS Prevents an issue where libintl from Mono gets picked up. Closes #5244. --- cmake/ConfigureChecks.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/ConfigureChecks.cmake b/cmake/ConfigureChecks.cmake index 291da3ee2..1dde6c837 100644 --- a/cmake/ConfigureChecks.cmake +++ b/cmake/ConfigureChecks.cmake @@ -11,6 +11,9 @@ if(APPLE) if(REQUIRES_UNGUARDED_AVAILABILITY) list(APPEND CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Werror=unguarded-availability") endif() + # Fix for https://github.com/fish-shell/fish-shell/issues/5244 + # via https://gitlab.kitware.com/cmake/cmake/-/issues/18921 + set(CMAKE_FIND_FRAMEWORK NEVER) endif() # An unrecognized flag is usually a warning and not an error, which CMake apparently does