Skip to content

Commit

Permalink
Use cmake -B and -S flags to specify the build path
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry authored Feb 17, 2022
1 parent 454727b commit 5b601df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/hhvm/01-installation/07-building-from-source.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ This will take a *long* time.
```
mkdir build
cd build
cmake -DMYSQL_UNIX_SOCK_ADDR=/var/run/mysqld/mysqld.sock ..
cmake -DMYSQL_UNIX_SOCK_ADDR=/var/run/mysqld/mysqld.sock -B. -S..
make -j [number_of_processor_cores] # eg. make -j 4
sudo make install
```
Expand Down Expand Up @@ -119,7 +119,7 @@ export CMAKE_PREFIX_PATH="$(echo "$HOMEBREW_DEPENDENCIES" | tr ',' "\n" | xargs
mkdir build
cd build
cmake .. \
cmake -B. -S.. \
-DMYSQL_UNIX_SOCK_ADDR=/tmp/mysql.sock \
-DCMAKE_OSX_SYSROOT=${HOMEBREW_SDKROOT} \
-DCMAKE_INSTALL_PREFIX=${HOMEBREW_CELLAR}/hhvm-local/$(date +%Y.%m.%d)
Expand Down

0 comments on commit 5b601df

Please sign in to comment.