summaryrefslogtreecommitdiffstats
path: root/recipe/build.sh
diff options
context:
space:
mode:
authorEdoardo Pasca <edo.paskino@gmail.com>2020-01-23 07:17:36 +0000
committerGitHub <noreply@github.com>2020-01-23 07:17:36 +0000
commitfecff8ded735d309aba43d30226c0bb51386c905 (patch)
tree7913ed05278f4922cc9854041ef81c5ddbee6bb8 /recipe/build.sh
parentc2cb31c0432dadf9f0257c6ad4a87a669a6fa6b2 (diff)
downloadframework-fecff8ded735d309aba43d30226c0bb51386c905.tar.gz
framework-fecff8ded735d309aba43d30226c0bb51386c905.tar.bz2
framework-fecff8ded735d309aba43d30226c0bb51386c905.tar.xz
framework-fecff8ded735d309aba43d30226c0bb51386c905.zip
working osx build (#491)
* working osx build * correct omp lib name * add cache parameter closes #470
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