summaryrefslogtreecommitdiffstats
path: root/recipe/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipe/build.sh')
-rw-r--r--recipe/build.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/recipe/build.sh b/recipe/build.sh
index 22cfae8..3ac547e 100644
--- a/recipe/build.sh
+++ b/recipe/build.sh
@@ -14,11 +14,26 @@ mkdir ${SRC_DIR}/build_framework
#cp -r "${RECIPE_DIR}/../" ${SRC_DIR}/build_framework
cd ${SRC_DIR}/build_framework
-cmake ${RECIPE_DIR}/../ -DCONDA_BUILD=ON \
+
+if [ `python -c "from __future__ import print_function; import platform; print (platform.system())"` == "Darwin" ] ;
+then
+ echo "Darwin";
+ cmake ${RECIPE_DIR}/../ -DCONDA_BUILD=ON \
+ -DCMAKE_BUILD_TYPE="Release"\
+ -DLIBRARY_LIB=$CONDA_PREFIX/lib \
+ -DLIBRARY_INC=$CONDA_PREFIX \
+ -DCMAKE_INSTALL_PREFIX=$PREFIX\
+ -DOPENMP_INCLUDES=${CONDA_PREFIX}/include \
+ -DOPENMP_LIBRARIES=${CONDA_PREFIX}/lib
+else
+ echo "something else";
+
+ cmake ${RECIPE_DIR}/../ -DCONDA_BUILD=ON \
-DCMAKE_BUILD_TYPE="Release"\
-DLIBRARY_LIB=$CONDA_PREFIX/lib \
-DLIBRARY_INC=$CONDA_PREFIX \
-DCMAKE_INSTALL_PREFIX=$PREFIX
-make install
+fi
+make install VERBOSE=1
# $PYTHON setup.py install