diff --git a/build.sh b/build.sh
index e9f044325465cebff06894f45d396440efa4c56a..96ecbd95ae329cad4bf74cd5fefc20e09004b637 100755
--- a/build.sh
+++ b/build.sh
@@ -124,7 +124,7 @@ if [ $? -ne 0 ]; then
 fi
 
 # Check of we have to do a make install
-if [ x"$comp_type" == x"full" ]; then
+if [ x"$comp_type" == x"full" -o x"$comp_type" == x"openmp" ]; then
     mv $HOME/openfpm_vars $HOME/openfpm_vars_$branch
     make install
     if [ x"$?" != x"0" ]; then