mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-13 22:51:31 +01:00
24 lines
732 B
Bash
Executable File
24 lines
732 B
Bash
Executable File
#!/usr/bin/env sh
|
|
|
|
# Always pass the CMAKE_TOOLCHAIN_FILE variable to CMake when inside a
|
|
# dockcross environment -- the CMAKE_TOOLCHAIN_FILE environmental variable is
|
|
# always set in this context
|
|
|
|
# Exception:
|
|
#
|
|
# Do not pass the toolchain when calling CMake with these options:
|
|
# -E = CMake command mode.
|
|
# --build <dir> = Build a CMake-generated project binary tree.
|
|
# --find-package = Run in pkg-config like mode.
|
|
# --install = install an already-generated project
|
|
#
|
|
case $1 in
|
|
|
|
-E|--build|--find-package|--install)
|
|
exec /usr/bin/cmake "$@"
|
|
;;
|
|
|
|
esac
|
|
|
|
exec /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"
|