[lldb][CMake] Generating Xcode projects
authorStefan Granitz <stefan.graenitz@gmail.com>
Tue, 6 Aug 2019 17:21:34 +0000 (17:21 +0000)
committerStefan Granitz <stefan.graenitz@gmail.com>
Tue, 6 Aug 2019 17:21:34 +0000 (17:21 +0000)
commit7f34a3652e9cf57b2d8119480e74b923f7731f4a
tree2ede324cfca48134f6055ac9b44cf6b40e3a37ee
parentc8ac029d0ae27b8fd392f216d471ba2730be7fd1
[lldb][CMake] Generating Xcode projects

Summary:
Print a warning if the wrong cache script is used when generating a Xcode project, because it's too easy to confuse with Apple-lldb-macOS.cmake

```
  When building with Xcode, we recommend using the corresponding cache
  script.  If this was a mistake, clean your build directory and re-run
  CMake with:

    -C /path/to/llvm-project/lldb/cmake/caches/Apple-lldb-Xcode.cmake

  See: https://lldb.llvm.org/resources/build.html#cmakegeneratedxcodeproject
```

Also set the generator inside the cache script.

Reviewers: JDevlieghere, jingham, clayborg

Reviewed By: JDevlieghere

Subscribers: mgorny, lldb-commits, #lldb

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D65797

llvm-svn: 368066
lldb/cmake/caches/Apple-lldb-Xcode.cmake
lldb/cmake/modules/LLDBConfig.cmake
lldb/docs/resources/build.rst