diff options
author | dm1try <me@dmitry.it> | 2018-10-16 03:52:04 +0300 |
---|---|---|
committer | dm1try <me@dmitry.it> | 2018-10-17 16:26:28 +0300 |
commit | 31f63c8d55fdd1108d391b35e4e95ad67492ff34 (patch) | |
tree | bc94ef837f6c2db57afe4aec24b142b92736ba12 | |
parent | 913588466dc981d5c1295f1a98e4de5e63b86a37 (diff) | |
download | rneovim-31f63c8d55fdd1108d391b35e4e95ad67492ff34.tar.gz rneovim-31f63c8d55fdd1108d391b35e4e95ad67492ff34.tar.bz2 rneovim-31f63c8d55fdd1108d391b35e4e95ad67492ff34.zip |
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
-rw-r--r-- | third-party/CMakeLists.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/third-party/CMakeLists.txt b/third-party/CMakeLists.txt index 4ca00b26cd..2c59d79c55 100644 --- a/third-party/CMakeLists.txt +++ b/third-party/CMakeLists.txt @@ -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 |