diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a7bbc2..b72ebc9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -125,6 +125,10 @@ else() # Find liblldb with the same version as the version of libclang found string(REPLACE libclang liblldb LIBLLDB_LIBRARIES "${LIBCLANG_LIBRARIES}") set(LIBLLDB_INCLUDE_DIRS ${LIBCLANG_INCLUDE_DIRS}) + if(NOT EXISTS "${LIBLLDB_LIBRARIES}") # In case lldb has been separated into another package as in homebrew + string(REPLACE llvm lldb LIBLLDB_LIBRARIES "${LIBLLDB_LIBRARIES}") + string(REPLACE llvm lldb LIBLLDB_INCLUDE_DIRS "${LIBCLANG_INCLUDE_DIRS}") + endif() endif() if(EXISTS "${LIBLLDB_LIBRARIES}") set(LIBLLDB_FOUND TRUE) diff --git a/docs/install.md b/docs/install.md index 7ad5ebf..69c9df7 100644 --- a/docs/install.md +++ b/docs/install.md @@ -180,13 +180,7 @@ make install Install dependencies: ```sh -brew install cmake pkg-config boost gtksourceviewmm3 gnome-icon-theme aspell llvm clang-format libgit2 zlib libxml2 universal-ctags -``` - -Mojave users might need to install headers: - -```sh -open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg +brew install cmake pkg-config boost gtksourceviewmm3 gnome-icon-theme aspell llvm lldb clang-format libgit2 zlib libxml2 universal-ctags ``` Get juCi++ source, compile and install: