forked from OSchip/llvm-project
Set CMake ADDITIONAL_HEADER_DIRS on libraries with headers in /include. NFC.
In a UI such as XCode, it can group the headers for a library with that library. This is done in the CMakeLists.txt for the library itself by setting the path(s) as ADDITIONAL_HEADER_DIRS. LLVM already does this for all of its libraries, so just adding this to lld to make things easier. Should be NFC. llvm-svn: 257002
This commit is contained in:
parent
f154b678c6
commit
69b18f4703
|
@ -1,4 +1,5 @@
|
|||
set(LLD_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
set(LLD_INCLUDE_DIR ${LLD_SOURCE_DIR}/include )
|
||||
set(LLD_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
# Compute the LLD version from the LLVM version.
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
add_lld_library(lldConfig
|
||||
Version.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLD_INCLUDE_DIR}/lld/Config
|
||||
|
||||
LINK_LIBS
|
||||
LLVMSupport
|
||||
)
|
||||
|
|
|
@ -7,6 +7,10 @@ add_lld_library(lldCore
|
|||
Resolver.cpp
|
||||
SymbolTable.cpp
|
||||
Writer.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLD_INCLUDE_DIR}/lld/Core
|
||||
|
||||
LINK_LIBS
|
||||
LLVMSupport
|
||||
)
|
||||
|
|
|
@ -14,6 +14,10 @@ add_lld_library(lldDriver
|
|||
Driver.cpp
|
||||
GnuLdDriver.cpp
|
||||
UniversalDriver.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLD_INCLUDE_DIR}/lld/Driver
|
||||
|
||||
LINK_LIBS
|
||||
lldConfig
|
||||
lldMachO
|
||||
|
|
|
@ -10,6 +10,10 @@ add_lld_library(lldReaderWriter
|
|||
CoreLinkingContext.cpp
|
||||
FileArchive.cpp
|
||||
LinkerScript.cpp
|
||||
|
||||
ADDITIONAL_HEADER_DIRS
|
||||
${LLD_INCLUDE_DIR}/lld/ReaderWriter
|
||||
|
||||
LINK_LIBS
|
||||
lldCore
|
||||
lldYAML
|
||||
|
|
Loading…
Reference in New Issue