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