mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
cmake: disable use of frameworks on macOS
Prevents an issue where libintl from Mono gets picked up. Closes #5244.
This commit is contained in:
parent
31a02c55b7
commit
95845b16c9
1 changed files with 3 additions and 0 deletions
|
@ -11,6 +11,9 @@ if(APPLE)
|
||||||
if(REQUIRES_UNGUARDED_AVAILABILITY)
|
if(REQUIRES_UNGUARDED_AVAILABILITY)
|
||||||
list(APPEND CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Werror=unguarded-availability")
|
list(APPEND CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS} "-Werror=unguarded-availability")
|
||||||
endif()
|
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()
|
endif()
|
||||||
|
|
||||||
# An unrecognized flag is usually a warning and not an error, which CMake apparently does
|
# An unrecognized flag is usually a warning and not an error, which CMake apparently does
|
||||||
|
|
Loading…
Reference in a new issue