mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
macOS: check for system headers in SDK
Starting with Xcode 10, system headers are located inside the macOS SDK. Add this location to the check for command line tools. Signed-off-by: Murillo Bernardes <mfbernardes@gmail.com>
This commit is contained in:
parent
0aef04352a
commit
2b3dc46c86
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ if [ $PLATFORM = Darwin ] ; then
|
|||
BASESDK=$(ls $SDKROOT | grep "MacOSX10\.1.\.sdk" | head -1 | sed -e "s/MacOSX//;s/\.sdk//")
|
||||
OLDER_MAC="-mmacosx-version-min=10.11 -isysroot${SDKROOT}/MacOSX${BASESDK}.sdk"
|
||||
OLDER_MAC_CMAKE="-DCMAKE_OSX_DEPLOYMENT_TARGET=${BASESDK} -DCMAKE_OSX_SYSROOT=${SDKROOT}/MacOSX${BASESDK}.sdk/"
|
||||
if [ ! -d /usr/include ] ; then
|
||||
if [[ ! -d /usr/include && ! -d "${SDKROOT}/MacOSX.sdk/usr/include" ]] ; then
|
||||
echo "Error: Xcode Command Line Tools are not installed"
|
||||
echo ""
|
||||
echo "Please run:"
|
||||
|
|
Loading…
Add table
Reference in a new issue