From 5fad0027400b66e72010567098cae4d011eda9c0 Mon Sep 17 00:00:00 2001 From: Nariman Date: Sat, 25 Feb 2023 15:28:52 +0000 Subject: macos-core-installation.md: Fix paths for brew packages (#874) Also streamline the usage of nproc in the commands --- docs/macos-core-installation.md | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/docs/macos-core-installation.md b/docs/macos-core-installation.md index db1e49d..eb639a4 100644 --- a/docs/macos-core-installation.md +++ b/docs/macos-core-installation.md @@ -64,26 +64,18 @@ cmake ../ \ -DCMAKE_INSTALL_PREFIX=$HOME/azeroth-server/ \ -DTOOLS_BUILD=all \ -DSCRIPTS=static \ --DMYSQL_ADD_INCLUDE_PATH=/usr/local/include \ --DMYSQL_LIBRARY=/usr/local/lib/libmysqlclient.dylib \ --DREADLINE_INCLUDE_DIR=/usr/local/opt/readline/include \ --DREADLINE_LIBRARY=/usr/local/opt/readline/lib/libreadline.dylib \ +-DMYSQL_ADD_INCLUDE_PATH=/opt/homebrew/include/mysql \ +-DMYSQL_LIBRARY=/opt/homebrew/lib/libmysqlclient.dylib \ +-DREADLINE_INCLUDE_DIR=/opt/homebrew/opt/readline/include \ +-DREADLINE_LIBRARY=/opt/homebrew/opt/readline/lib/libreadline.dylib \ -DOPENSSL_INCLUDE_DIR="$OPENSSL_ROOT_DIR/include" \ -DOPENSSL_SSL_LIBRARIES="$OPENSSL_ROOT_DIR/lib/libssl.dylib" \ -DOPENSSL_CRYPTO_LIBRARIES="$OPENSSL_ROOT_DIR/lib/libcrypto.dylib" ``` - -To know the amount of cores available. -You can use the following command - -```sh -nproc --all -``` - -Then, replacing `4` with the number of threads that you want to execute, type: +Then, to build and install: ```sh -make -j 4 +make -j `nproc` make install ``` -- cgit