base: Add cmake wrapper scripts for CMAKE_TOOLCHAIN_FILE

All images should define this variables.

Disable build tests on the base image because it is not configured for cross
compiling.
This commit is contained in:
Matt McCormick
2016-07-18 23:27:51 -04:00
parent 041eb8702b
commit 1ed3548655
5 changed files with 23 additions and 13 deletions

6
imagefiles/ccmake.sh Executable file
View File

@ -0,0 +1,6 @@
#!/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
exec /usr/bin/ccmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"

6
imagefiles/cmake.sh Executable file
View File

@ -0,0 +1,6 @@
#!/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
exec /usr/bin/cmake -DCMAKE_TOOLCHAIN_FILE:FILEPATH=${CMAKE_TOOLCHAIN_FILE} "$@"