brintos

brintos / llvm-project-archived public Read only

0
0
Text · 613 B · ce96ddd Raw
19 lines · plain
1# tablegen targets get exported via llvm for LLVMConfig.cmake. So standalone2# builds of lldb can potentially import this via LLVMConfig and also attempt to3# build it in tree. So only build it if it doesn't exist.4if (NOT DEFINED LLDB_TABLEGEN_EXE)5  if (TARGET lldb-tblgen)6    set(LLDB_TABLEGEN_EXE $<TARGET_FILE:lldb-tblgen> CACHE STRING "")7  else()8    set(LLVM_LINK_COMPONENTS Support)9 10    add_tablegen(lldb-tblgen LLDB11      DESTINATION "${CMAKE_INSTALL_BINDIR}"12      LLDBOptionDefEmitter.cpp13      LLDBPropertyDefEmitter.cpp14      LLDBTableGen.cpp15      LLDBTableGenUtils.cpp16      )17  endif()18endif()19