diff --git a/etc/mongocxx/install_mongocxx.sh b/etc/mongocxx/install_mongocxx.sh
index 8820931ce0ab923c8a2ff451ee84f62c9b62918c..ca466408fed7af70432400adeb2504f348b48ce9 100755
--- a/etc/mongocxx/install_mongocxx.sh
+++ b/etc/mongocxx/install_mongocxx.sh
@@ -141,9 +141,8 @@ cd build
 cmake ..
 cmake .. -DBSON_LIBRARY="/usr/lib/x86_64-linux-gnu/libbson-1.0.so" -DMONGOC_LIBRARY="/usr/lib/x86_64-linux-gnu/libmongoc-1.0.so" -DCMAKE_INSTALL_PREFIX="$installDir"
 # install to $extractDir/build/install
-make -j`nproc`
-make install
-
+cmake --build . -- -j`nproc`
+cmake --build . --target install
 
 # Finally, tell RobotAPI where to find mongocxx
 echo "$HIGHLIGHT