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:
dm1try
2018-10-16 03:52:04 +03:00
parent 913588466d
commit 31f63c8d55

View File

@@ -98,6 +98,10 @@ else()
set(DEPS_C_COMPILER "${CMAKE_C_COMPILER}")
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
# HOST system, when not crosscompiling these should be the
# same as DEPS_*. Except when targeting Unix in which case