diff --git a/build.sh b/build.sh
index fcfd44650c9614b2087e38545dab755fd923b04d..3ea60f736b347c14ab804f7a179b449be53a193f 100755
--- a/build.sh
+++ b/build.sh
@@ -17,7 +17,7 @@ if [ ! -d $HOME/openfpm_dependencies/openfpm_devices/BOOST ]; then
 fi
 
 sh ./autogen.sh
-sh ./configure --with-boost=$HOME/openfpm_dependencies/openfpm_devices/
+sh ./configure --with-boost=$HOME/openfpm_dependencies/openfpm_devices/BOOST
 
 make