mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
17 lines
335 B
Bash
Executable File
17 lines
335 B
Bash
Executable File
#!/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 "$@"
|