From 4b96842b45c87409adc23f718926c22fd59f5c22 Mon Sep 17 00:00:00 2001 From: Mark Harfouche Date: Sun, 1 Oct 2023 20:29:22 -0400 Subject: [PATCH] Specify CMAKE_ARGS --- recipe/build.sh | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/recipe/build.sh b/recipe/build.sh index f0165a7..9e3a575 100755 --- a/recipe/build.sh +++ b/recipe/build.sh @@ -2,17 +2,23 @@ export CXXFLAGS="$CXXFLAGS -DGIFLIB_MAJOR=5" -mkdir -vp ${PREFIX}/bin; -mkdir build; cd build; -cmake $SRC_DIR \ - -DUSE_FFMPEG=ON \ - -DOIIO_BUILD_TOOLS=OFF \ - -DOIIO_BUILD_TESTS=OFF \ - -DUSE_PYTHON=ON \ - -DUSE_OPENCV=OFF \ - -DCMAKE_INSTALL_PREFIX=$PREFIX \ - -DCMAKE_INSTALL_LIBDIR=lib \ - -DCMAKE_BUILD_TYPE=Release \ - -DPYTHON_VERSION=$PY_VER \ +mkdir -p ${PREFIX}/bin + +mkdir build + +pushd build; +cmake ${CMAKE_ARGS} \ + -DUSE_FFMPEG=ON \ + -DOIIO_BUILD_TOOLS=OFF \ + -DOIIO_BUILD_TESTS=OFF \ + -DUSE_PYTHON=ON \ + -DUSE_OPENCV=OFF \ + -DCMAKE_INSTALL_PREFIX=$PREFIX \ + -DCMAKE_INSTALL_LIBDIR=lib \ + -DCMAKE_BUILD_TYPE=Release \ + -DPYTHON_VERSION=$PY_VER \ + .. make all -j${CPU_COUNT} + +popd