forked from OSchip/llvm-project
cmake: Make the LLDB standalone build work for me
This allows me to generate a Visual Studio solution that builds LLDB if you have standalone builds of LLVM and Clang lying around. Unfortunately, you have to pass *four* CMake variables in, but it means you don't have to take the extra step of installing Clang and LLVM to some package prefix. Hopefully this will generate a more usable XCode project too. llvm-svn: 221413
This commit is contained in:
parent
31fb9edc00
commit
ee3c175e6b
|
@ -59,10 +59,17 @@ if (CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
|
|||
get_filename_component(PATH_TO_CLANG_BUILD ${LLDB_PATH_TO_CLANG_BUILD}
|
||||
ABSOLUTE)
|
||||
|
||||
# These variables are used by add_llvm_library.
|
||||
set(LLVM_RUNTIME_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/bin)
|
||||
set(LLVM_LIBRARY_OUTPUT_INTDIR ${CMAKE_BINARY_DIR}/${CMAKE_CFG_INTDIR}/lib)
|
||||
|
||||
include(AddLLVM)
|
||||
include("${LLDB_PATH_TO_LLVM_BUILD}/share/llvm/cmake/LLVMConfig.cmake")
|
||||
include(HandleLLVMOptions)
|
||||
|
||||
# Import CMake library targets from LLVM and Clang.
|
||||
include("${LLDB_PATH_TO_LLVM_BUILD}/share/llvm/cmake/LLVMConfig.cmake")
|
||||
include("${LLDB_PATH_TO_CLANG_BUILD}/share/clang/cmake/ClangConfig.cmake")
|
||||
|
||||
set(PACKAGE_VERSION "${LLVM_PACKAGE_VERSION}")
|
||||
|
||||
set(LLVM_MAIN_INCLUDE_DIR "${LLVM_MAIN_SRC_DIR}/include")
|
||||
|
|
Loading…
Reference in New Issue