linux-armv7: Add CMAKE_CROSSCOMPILING_EMULATOR.

This commit is contained in:
Matt McCormick 2015-05-09 07:57:41 -04:00
parent a04f06eecc
commit 1e838b6cdf
2 changed files with 5 additions and 1 deletions

View File

@ -8,7 +8,9 @@ RUN echo "deb http://emdebian.org/tools/debian/ jessie main" >> /etc/apt/sources
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
crossbuild-essential-armhf \ crossbuild-essential-armhf \
gfortran-arm-linux-gnueabihf gfortran-arm-linux-gnueabihf \
qemu-user \
qemu-user-static
WORKDIR /usr/src WORKDIR /usr/src

View File

@ -11,3 +11,5 @@ set(CMAKE_FIND_ROOT_PATH /usr/${cross_triple})
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
set(CMAKE_CROSSCOMPILING_EMULATOR /usr/bin/qemu-arm)