diff --git a/imagefiles/ccmake.sh b/imagefiles/ccmake.sh index d3ee665..6b009de 100755 --- a/imagefiles/ccmake.sh +++ b/imagefiles/ccmake.sh @@ -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} "$@" diff --git a/imagefiles/cmake.sh b/imagefiles/cmake.sh index ff3edb6..2a61915 100755 --- a/imagefiles/cmake.sh +++ b/imagefiles/cmake.sh @@ -3,12 +3,20 @@ # 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/cmake "$@" -else - exec /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@" -fi +# Exception: +# +# Do not pass the toolchain when calling CMake with these options: +# -E = CMake command mode. +# --build