mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-21 10:23:34 +02:00
base/cmake: Do not pass toolchain option when using incompatible cmake option
Also revert the changes to ccmake.sh, the restriction doesn't apply to it. Suggested-by: Matt McCormick <matt.mccormick@kitware.com>
This commit is contained in:
@ -3,12 +3,5 @@
|
||||
# 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
|
||||
exec /usr/bin/ccmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"
|
||||
|
Reference in New Issue
Block a user