Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
c8ac029
commit 7f34a36
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
include(${CMAKE_CURRENT_LIST_DIR}/Apple-lldb-base.cmake) | ||
|
||
set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "") | ||
set(CMAKE_GENERATOR Xcode) | ||
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11 CACHE STRING "") | ||
set(CMAKE_XCODE_GENERATE_SCHEME ON CACHE BOOL "") | ||
|
||
set(LLDB_BUILD_FRAMEWORK ON CACHE BOOL "") | ||
|
||
# Print a warning with instructions, if we | ||
# build with Xcode and didn't use this cache. | ||
set(LLDB_EXPLICIT_XCODE_CACHE_USED ON CACHE INTERNAL "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters