osxcross/tools/osxcross-cmake

17 lines
335 B
Plaintext
Raw Normal View History

2018-03-10 18:29:47 +01:00
#!/usr/bin/env bash
set -e
dir=`dirname "$0"`
progname=`basename "$0"`
host=${progname%-cmake}
if test "$host" = "osxcross" ; then
echo "Do not invoke this script directly."
exit 1
fi
eval "`$dir/$host-osxcross-conf`"
export OSXCROSS_HOST="$host"
exec cmake -DCMAKE_TOOLCHAIN_FILE="$OSXCROSS_TARGET_DIR"/toolchain.cmake "$@"