Skip to content

Commit 454727b

Browse files
authored
Use separate CMake build directory for macOS
1 parent a6ad194 commit 454727b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export CMAKE_PREFIX_PATH="$(echo "$HOMEBREW_DEPENDENCIES" | tr ',' "\n" | xargs
117117
# - Make sure that CMake uses Homebrew's preferred OSX SDK
118118
# - set installation prefix for installing side-by-side with homebrew versions (optional)
119119
120-
cmake . \
120+
mkdir build
121+
cd build
122+
cmake .. \
121123
-DMYSQL_UNIX_SOCK_ADDR=/tmp/mysql.sock \
122124
-DCMAKE_OSX_SYSROOT=${HOMEBREW_SDKROOT} \
123125
-DCMAKE_INSTALL_PREFIX=${HOMEBREW_CELLAR}/hhvm-local/$(date +%Y.%m.%d)

0 commit comments

Comments
 (0)