Skip to content

Commit 5b601df

Browse files
authored
Use cmake -B and -S flags to specify the build path
1 parent 454727b commit 5b601df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/hhvm/01-installation/07-building-from-source.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ This will take a *long* time.
7474
```
7575
mkdir build
7676
cd build
77-
cmake -DMYSQL_UNIX_SOCK_ADDR=/var/run/mysqld/mysqld.sock ..
77+
cmake -DMYSQL_UNIX_SOCK_ADDR=/var/run/mysqld/mysqld.sock -B. -S..
7878
make -j [number_of_processor_cores] # eg. make -j 4
7979
sudo make install
8080
```
@@ -119,7 +119,7 @@ export CMAKE_PREFIX_PATH="$(echo "$HOMEBREW_DEPENDENCIES" | tr ',' "\n" | xargs
119119
120120
mkdir build
121121
cd build
122-
cmake .. \
122+
cmake -B. -S.. \
123123
-DMYSQL_UNIX_SOCK_ADDR=/tmp/mysql.sock \
124124
-DCMAKE_OSX_SYSROOT=${HOMEBREW_SDKROOT} \
125125
-DCMAKE_INSTALL_PREFIX=${HOMEBREW_CELLAR}/hhvm-local/$(date +%Y.%m.%d)

0 commit comments

Comments
 (0)