diff options
author | Liang Qi <liang.qi@qt.io> | 2019-02-12 10:19:47 +0100 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2019-02-12 14:05:11 +0000 |
commit | 73a3a96c7b42aad2a6c075fe1679baba47a8c6b2 (patch) | |
tree | cd8c54235b30edf9b98ac612c6bc650e69e0ccf9 /cmake/README.md | |
parent | 9bef044a0bec636ff08f7dcd6e16f6fadd612532 (diff) |
cmake: update README.md
Added info for using homebrew on macOS.
Change-Id: Ie425793d3de1e72a9342f6c2aaf67a4f85592f3a
Reviewed-by: Kevin Funk <kevin.funk@kdab.com>
Diffstat (limited to 'cmake/README.md')
-rw-r--r-- | cmake/README.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/cmake/README.md b/cmake/README.md index b32e64aa9e..b2a9f3fc3a 100644 --- a/cmake/README.md +++ b/cmake/README.md @@ -35,6 +35,16 @@ You may use vcpkg to install dependencies needed to build QtBase. * When running cmake in qtbase, pass ``-DCMAKE_PREFIX_PATH=/path/to/your/vcpkg/installed/$VCPKG_DEFAULT_TRIPLET`` or ``-DCMAKE_PREFIX_PATH=/path/to/your/vcpkg/installed/%VCPKG_DEFAULT_TRIPLET%`` on Windows. +# Building against homebrew on macOS + +vcpkg doesn't support clang on macOS, see https://github.com/Microsoft/vcpkg/issues/4475 . + + * Install homebrew: ```/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"``` + * Build Qt dependencies: ``brew install pcre2 harfbuzz`` + * Build cmake from HEAD (or you can build your own): ``brew --HEAD install cmake`` + * When running cmake in qtbase, pass ``-DCMAKE_PREFIX_PATH=/usr/local`` + + # Building The basic way of building with cmake is as follows: |