mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-11-10 05:07:26 +01:00
c525ad106e
By default the toolchain file is always passed as an option to cmake/ccmake It can be explicitly disabled setting the environment variable DOCKCROSS_PASS_CMAKE_TOOLCHAIN_FILE to 0
15 lines
484 B
Bash
Executable File
15 lines
484 B
Bash
Executable File
#!/bin/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
|
|
#
|
|
# Passing of the option can be disabled setting environment variable
|
|
# DOCKCROSS_PASS_CMAKE_TOOLCHAIN_FILE to 0
|
|
|
|
if [ "${DOCKCROSS_PASS_CMAKE_TOOLCHAIN_FILE}" == "0" ];then
|
|
exec /usr/bin/ccmake "$@"
|
|
else
|
|
exec /usr/bin/ccmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"
|
|
fi
|