mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 19:35:37 +00:00
build/macOS: provide SDK path to deps compiler
otherwise, system headers cannot be found on Mojave they were moved from /usr/include to SDK path
This commit is contained in:
4
third-party/CMakeLists.txt
vendored
4
third-party/CMakeLists.txt
vendored
@@ -98,6 +98,10 @@ else()
|
|||||||
set(DEPS_C_COMPILER "${CMAKE_C_COMPILER}")
|
set(DEPS_C_COMPILER "${CMAKE_C_COMPILER}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
if(CMAKE_OSX_SYSROOT)
|
||||||
|
set(DEPS_C_COMPILER "${DEPS_C_COMPILER} -isysroot${CMAKE_OSX_SYSROOT}")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Cross compiling: use these for dependencies built for the
|
# Cross compiling: use these for dependencies built for the
|
||||||
# HOST system, when not crosscompiling these should be the
|
# HOST system, when not crosscompiling these should be the
|
||||||
# same as DEPS_*. Except when targeting Unix in which case
|
# same as DEPS_*. Except when targeting Unix in which case
|
||||||
|
|||||||
Reference in New Issue
Block a user