Commit f2754108 authored by sebt3's avatar sebt3

Update pyra_cmake to tell cmake where to find it's files

parent e40817eb
......@@ -89,9 +89,9 @@ pyra_configure() {
pyra_cmake() {
if [ -z "$PRJ" ];then
echo "You should configure your project (using the pyra_setprj <project> command)"
SDLDIR="${PYRA_ROOTFS}/usr" cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKETOOLCHAINFILE $@
CMAKE_PREFIX_PATH="${PYRA_ROOTFS}/usr/lib/arm-linux-gnueabihf/cmake" SDLDIR="${PYRA_ROOTFS}/usr" cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKETOOLCHAINFILE $@
else
SDLDIR="${PYRA_ROOTFS}/usr" cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKETOOLCHAINFILE -DPRJ_PREFIX=$PYRA_BASEDIR/$PRJ -DCMAKE_INSTALL_PREFIX=$PYRA_BASEDIR/$PRJ $@
CMAKE_PREFIX_PATH="${PYRA_ROOTFS}/usr/lib/arm-linux-gnueabihf/cmake" SDLDIR="${PYRA_ROOTFS}/usr" cmake -DCMAKE_TOOLCHAIN_FILE=$CMAKETOOLCHAINFILE -DPRJ_PREFIX=$PYRA_BASEDIR/$PRJ -DCMAKE_INSTALL_PREFIX=$PYRA_BASEDIR/$PRJ $@
fi
}
pyra_makeinstall() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment