From 0db066f2b5f33b4f55bb278a58a08b78d1eb25c3 Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Sun, 17 Mar 2013 10:33:33 +0000 Subject: [PATCH] opencv: switch to out-of-tree builds This eliminates a few warnings from the configure step and makes sense in general. (From meta-openembedded rev: 6663d9c05efe9b604bd8596a21cd38344e2fa3a1) Signed-off-by: Koen Kooi Signed-off-by: Martin Jansa Signed-off-by: Patrick Ohly --- meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.3.bb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.3.bb b/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.3.bb index 2114e77..916c8c5 100644 --- a/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.3.bb +++ b/meta-openembedded/meta-oe/recipes-support/opencv/opencv_2.4.3.bb @@ -20,6 +20,10 @@ PR = "r2" S = "${WORKDIR}/OpenCV-${PV}" +# Do an out-of-tree build +OECMAKE_SOURCEPATH = "${S}" +OECMAKE_BUILDPATH = "${WORKDIR}/build-${TARGET_ARCH}" + EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/${PYTHON_DIR}/site-packages/numpy/core/include \ -DBUILD_PYTHON_SUPPORT=ON \ -DWITH_FFMPEG=ON \ -- 2.7.4