Remove check for macos_environment.sh - no need for it
We can just do a one-liner here, if it fails, the script fails, and it should do that. Also renamed macOS_environment to all lower-case (and snake_case). Signed-off-by: Dom Rodriguez <shymega@shymega.org.uk>
This commit is contained in:
parent
cb754b6799
commit
16b2f93bf5
|
@ -24,12 +24,7 @@ B_CMAKE_FLAGS="-DCMAKE_BUILD_TYPE=${B_BUILD_TYPE} ${B_CMAKE_FLAGS:-}"
|
||||||
|
|
||||||
if [ "$(uname)" = "Darwin" ]; then
|
if [ "$(uname)" = "Darwin" ]; then
|
||||||
# macOS needs a little help, so we source this environment script to fix paths.
|
# macOS needs a little help, so we source this environment script to fix paths.
|
||||||
if [ ! -e "./macOS_environment.sh" ]; then
|
[ -e "./macos_environment.sh" ] && . ./macos_environment.sh
|
||||||
echo "macOS environment script not found, this isn't meant to happen!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
. ./macOS_environment.sh
|
|
||||||
fi
|
|
||||||
|
|
||||||
B_CMAKE_FLAGS="${B_CMAKE_FLAGS} -DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9"
|
B_CMAKE_FLAGS="${B_CMAKE_FLAGS} -DCMAKE_OSX_SYSROOT=$(xcode-select --print-path)/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue