From 8935451cc1449570b485cd244ca564a17b80bfa2 Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Tue, 23 Jan 2018 17:21:07 +0000 Subject: fixed conda recipes for unix --- recipes/regularizers/build.sh | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) (limited to 'recipes') diff --git a/recipes/regularizers/build.sh b/recipes/regularizers/build.sh index ab5474b..0b8bce2 100644 --- a/recipes/regularizers/build.sh +++ b/recipes/regularizers/build.sh @@ -1,17 +1,19 @@ #!/usr/bin/env bash -mkdir build -cd build +echo $CIL_VERSION +#if [ -z "$CIL_VERSION" ]; then +# echo "Need to set CIL_VERSION" +# exit 1 +#fi +#export CIL_VERSION=0.9.1 -#configure -BUILD_CONFIG=Release -echo `pwd` -cmake .. -G "Ninja" \ - -Wno-dev \ - -DCMAKE_BUILD_TYPE=$BUILD_CONFIG \ - -DCMAKE_PREFIX_PATH:PATH="${PREFIX}" \ - -DCMAKE_INSTALL_PREFIX:PATH="${PREFIX}" \ - -DCMAKE_INSTALL_RPATH:PATH="${PREFIX}/lib" -# compile & install -ninja install + +mkdir ${SRC_DIR}/build +cp -rv ${RECIPE_DIR}/../../Core/ ${SRC_DIR}/build +mkdir ${SRC_DIR}/build/build +cd ${SRC_DIR}/build/build +cmake -G "Unix Makefiles" -DLIBRARY_LIB="${CONDA_PREFIX}/lib" -DLIBRARY_INC="${CONDA_PREFIX}" -DCMAKE_INSTALL_PREFIX="${PREFIX}" ../Core + +make -j2 VERBOSE=1 +make install -- cgit v1.2.3