osxcross/tools/osxcross-cmake
JP Cimalando f394d6a890 add CMake
2018-03-10 18:29:47 +01:00

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 "$@"