diff --git a/lib/Analysis/CMakeLists.txt b/lib/Analysis/CMakeLists.txt index 351fab9136f..d8400375b2a 100644 --- a/lib/Analysis/CMakeLists.txt +++ b/lib/Analysis/CMakeLists.txt @@ -60,6 +60,9 @@ add_llvm_library(LLVMAnalysis TypeBasedAliasAnalysis.cpp ScopedNoAliasAA.cpp ValueTracking.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis ) add_dependencies(LLVMAnalysis intrinsics_gen) diff --git a/lib/AsmParser/CMakeLists.txt b/lib/AsmParser/CMakeLists.txt index 985ebe20098..78668377d13 100644 --- a/lib/AsmParser/CMakeLists.txt +++ b/lib/AsmParser/CMakeLists.txt @@ -3,4 +3,7 @@ add_llvm_library(LLVMAsmParser LLLexer.cpp LLParser.cpp Parser.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Analysis ) diff --git a/lib/Bitcode/Reader/CMakeLists.txt b/lib/Bitcode/Reader/CMakeLists.txt index f614c9fd4a0..62954f26e20 100644 --- a/lib/Bitcode/Reader/CMakeLists.txt +++ b/lib/Bitcode/Reader/CMakeLists.txt @@ -2,6 +2,9 @@ add_llvm_library(LLVMBitReader BitReader.cpp BitcodeReader.cpp BitstreamReader.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Bitcode ) add_dependencies(LLVMBitReader intrinsics_gen) diff --git a/lib/CodeGen/CMakeLists.txt b/lib/CodeGen/CMakeLists.txt index 417da69f543..f21d4d252a5 100644 --- a/lib/CodeGen/CMakeLists.txt +++ b/lib/CodeGen/CMakeLists.txt @@ -119,6 +119,10 @@ add_llvm_library(LLVMCodeGen UnreachableBlockElim.cpp VirtRegMap.cpp WinEHPrepare.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen + ${LLVM_MAIN_INCLUDE_DIR}/llvm/CodeGen/PBQP ) add_dependencies(LLVMCodeGen intrinsics_gen) diff --git a/lib/DebugInfo/DWARF/CMakeLists.txt b/lib/DebugInfo/DWARF/CMakeLists.txt index 2975581777a..8c6d495228c 100644 --- a/lib/DebugInfo/DWARF/CMakeLists.txt +++ b/lib/DebugInfo/DWARF/CMakeLists.txt @@ -16,4 +16,7 @@ add_llvm_library(LLVMDebugInfoDWARF DWARFTypeUnit.cpp DWARFUnit.cpp SyntaxHighlighting.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/DWARF ) diff --git a/lib/DebugInfo/PDB/CMakeLists.txt b/lib/DebugInfo/PDB/CMakeLists.txt index 00ad1caa46f..d86c8bdcad8 100644 --- a/lib/DebugInfo/PDB/CMakeLists.txt +++ b/lib/DebugInfo/PDB/CMakeLists.txt @@ -23,11 +23,11 @@ if(HAVE_DIA_SDK) DIA/DIASourceFile.cpp ) - set(LIBPDB_ADDITIONAL_HEADER_DIRS "../../../include/llvm/DebugInfo/PDB/DIA/") + set(LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB/DIA") endif() -list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "../../../include/llvm/DebugInfo/PDB") +list(APPEND LIBPDB_ADDITIONAL_HEADER_DIRS "${LLVM_MAIN_INCLUDE_DIR}/llvm/DebugInfo/PDB") add_llvm_library(LLVMDebugInfoPDB IPDBSourceFile.cpp diff --git a/lib/ExecutionEngine/CMakeLists.txt b/lib/ExecutionEngine/CMakeLists.txt index d2c33cda1a6..723cae98464 100644 --- a/lib/ExecutionEngine/CMakeLists.txt +++ b/lib/ExecutionEngine/CMakeLists.txt @@ -7,6 +7,9 @@ add_llvm_library(LLVMExecutionEngine RTDyldMemoryManager.cpp SectionMemoryManager.cpp TargetSelect.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine ) add_subdirectory(Interpreter) diff --git a/lib/ExecutionEngine/Orc/CMakeLists.txt b/lib/ExecutionEngine/Orc/CMakeLists.txt index 3fadb931200..b0a8445c84d 100644 --- a/lib/ExecutionEngine/Orc/CMakeLists.txt +++ b/lib/ExecutionEngine/Orc/CMakeLists.txt @@ -3,4 +3,7 @@ add_llvm_library(LLVMOrcJIT IndirectionUtils.cpp OrcMCJITReplacement.cpp OrcTargetSupport.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/ExecutionEngine/Orc ) diff --git a/lib/IR/CMakeLists.txt b/lib/IR/CMakeLists.txt index 6e3deaef20b..9fef0b292eb 100644 --- a/lib/IR/CMakeLists.txt +++ b/lib/IR/CMakeLists.txt @@ -47,6 +47,9 @@ add_llvm_library(LLVMCore ValueSymbolTable.cpp ValueTypes.cpp Verifier.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/IR ) add_dependencies(LLVMCore intrinsics_gen) diff --git a/lib/IRReader/CMakeLists.txt b/lib/IRReader/CMakeLists.txt index cf10d8b7dba..2c0e61b65fb 100644 --- a/lib/IRReader/CMakeLists.txt +++ b/lib/IRReader/CMakeLists.txt @@ -1,3 +1,6 @@ add_llvm_library(LLVMIRReader IRReader.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/IRReader ) diff --git a/lib/LTO/CMakeLists.txt b/lib/LTO/CMakeLists.txt index 5791398c329..1c099bb029b 100644 --- a/lib/LTO/CMakeLists.txt +++ b/lib/LTO/CMakeLists.txt @@ -1,6 +1,9 @@ add_llvm_library(LLVMLTO LTOModule.cpp LTOCodeGenerator.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/LTO ) add_dependencies(LLVMLTO intrinsics_gen) diff --git a/lib/LineEditor/CMakeLists.txt b/lib/LineEditor/CMakeLists.txt index 0dec256e415..0d2bada1e84 100644 --- a/lib/LineEditor/CMakeLists.txt +++ b/lib/LineEditor/CMakeLists.txt @@ -5,7 +5,10 @@ endif() add_llvm_library(LLVMLineEditor LineEditor.cpp + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/LineEditor + LINK_LIBS LLVMSupport ${link_libs} -) + ) diff --git a/lib/Linker/CMakeLists.txt b/lib/Linker/CMakeLists.txt index 221b55a9c40..5a1f31a97ee 100644 --- a/lib/Linker/CMakeLists.txt +++ b/lib/Linker/CMakeLists.txt @@ -1,3 +1,6 @@ add_llvm_library(LLVMLinker LinkModules.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Linker ) diff --git a/lib/MC/CMakeLists.txt b/lib/MC/CMakeLists.txt index 7181bdc0476..ddddd49d90e 100644 --- a/lib/MC/CMakeLists.txt +++ b/lib/MC/CMakeLists.txt @@ -46,6 +46,9 @@ add_llvm_library(LLVMMC WinCOFFObjectWriter.cpp WinCOFFStreamer.cpp YAML.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/MC ) add_subdirectory(MCParser) diff --git a/lib/MC/MCParser/CMakeLists.txt b/lib/MC/MCParser/CMakeLists.txt index 222f237bfd6..957c94edc53 100644 --- a/lib/MC/MCParser/CMakeLists.txt +++ b/lib/MC/MCParser/CMakeLists.txt @@ -8,4 +8,7 @@ add_llvm_library(LLVMMCParser MCAsmParser.cpp MCAsmParserExtension.cpp MCTargetAsmParser.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/MCParser ) diff --git a/lib/Object/CMakeLists.txt b/lib/Object/CMakeLists.txt index 5b08e42dd9e..37add22fac5 100644 --- a/lib/Object/CMakeLists.txt +++ b/lib/Object/CMakeLists.txt @@ -14,4 +14,7 @@ add_llvm_library(LLVMObject ObjectFile.cpp RecordStreamer.cpp SymbolicFile.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Object ) diff --git a/lib/Option/CMakeLists.txt b/lib/Option/CMakeLists.txt index 1cd7d3a045a..8eb086028da 100644 --- a/lib/Option/CMakeLists.txt +++ b/lib/Option/CMakeLists.txt @@ -3,4 +3,7 @@ add_llvm_library(LLVMOption ArgList.cpp Option.cpp OptTable.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Option ) diff --git a/lib/ProfileData/CMakeLists.txt b/lib/ProfileData/CMakeLists.txt index b9d472d99e7..282760f0e66 100644 --- a/lib/ProfileData/CMakeLists.txt +++ b/lib/ProfileData/CMakeLists.txt @@ -8,4 +8,7 @@ add_llvm_library(LLVMProfileData SampleProf.cpp SampleProfReader.cpp SampleProfWriter.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/ProfileData ) diff --git a/lib/Support/CMakeLists.txt b/lib/Support/CMakeLists.txt index 3398c1dc4ea..a44c1a35c4d 100644 --- a/lib/Support/CMakeLists.txt +++ b/lib/Support/CMakeLists.txt @@ -124,6 +124,7 @@ add_llvm_library(LLVMSupport ADDITIONAL_HEADER_DIRS Unix Windows + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Support LINK_LIBS ${system_libs} ) diff --git a/lib/TableGen/CMakeLists.txt b/lib/TableGen/CMakeLists.txt index fb702187d13..9333b653777 100644 --- a/lib/TableGen/CMakeLists.txt +++ b/lib/TableGen/CMakeLists.txt @@ -7,4 +7,7 @@ add_llvm_library(LLVMTableGen TableGenBackend.cpp TGLexer.cpp TGParser.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/TableGen ) diff --git a/lib/Target/CMakeLists.txt b/lib/Target/CMakeLists.txt index d0f10a19a0f..1805437b12f 100644 --- a/lib/Target/CMakeLists.txt +++ b/lib/Target/CMakeLists.txt @@ -7,6 +7,9 @@ add_llvm_library(LLVMTarget TargetMachine.cpp TargetMachineC.cpp TargetSubtargetInfo.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Target ) foreach(t ${LLVM_TARGETS_TO_BUILD}) diff --git a/lib/Transforms/IPO/CMakeLists.txt b/lib/Transforms/IPO/CMakeLists.txt index 90c1c33e6dc..923c3afd47c 100644 --- a/lib/Transforms/IPO/CMakeLists.txt +++ b/lib/Transforms/IPO/CMakeLists.txt @@ -20,6 +20,10 @@ add_llvm_library(LLVMipo PruneEH.cpp StripDeadPrototypes.cpp StripSymbols.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/IPO ) add_dependencies(LLVMipo intrinsics_gen) diff --git a/lib/Transforms/InstCombine/CMakeLists.txt b/lib/Transforms/InstCombine/CMakeLists.txt index a25696ec03a..0ed8e6273db 100644 --- a/lib/Transforms/InstCombine/CMakeLists.txt +++ b/lib/Transforms/InstCombine/CMakeLists.txt @@ -12,6 +12,10 @@ add_llvm_library(LLVMInstCombine InstCombineShifts.cpp InstCombineSimplifyDemanded.cpp InstCombineVectorOps.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/InstCombine ) add_dependencies(LLVMInstCombine intrinsics_gen) diff --git a/lib/Transforms/Instrumentation/CMakeLists.txt b/lib/Transforms/Instrumentation/CMakeLists.txt index 92e1091aa3b..b2ff03343eb 100644 --- a/lib/Transforms/Instrumentation/CMakeLists.txt +++ b/lib/Transforms/Instrumentation/CMakeLists.txt @@ -8,6 +8,9 @@ add_llvm_library(LLVMInstrumentation InstrProfiling.cpp SanitizerCoverage.cpp ThreadSanitizer.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms ) add_dependencies(LLVMInstrumentation intrinsics_gen) diff --git a/lib/Transforms/ObjCARC/CMakeLists.txt b/lib/Transforms/ObjCARC/CMakeLists.txt index b449fac1386..b0f554937be 100644 --- a/lib/Transforms/ObjCARC/CMakeLists.txt +++ b/lib/Transforms/ObjCARC/CMakeLists.txt @@ -9,6 +9,9 @@ add_llvm_library(LLVMObjCARCOpts DependencyAnalysis.cpp ProvenanceAnalysis.cpp ProvenanceAnalysisEvaluator.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms ) add_dependencies(LLVMObjCARCOpts intrinsics_gen) diff --git a/lib/Transforms/Scalar/CMakeLists.txt b/lib/Transforms/Scalar/CMakeLists.txt index 6aefaa80153..1f381e6d2ec 100644 --- a/lib/Transforms/Scalar/CMakeLists.txt +++ b/lib/Transforms/Scalar/CMakeLists.txt @@ -42,6 +42,10 @@ add_llvm_library(LLVMScalarOpts StraightLineStrengthReduce.cpp StructurizeCFG.cpp TailRecursionElimination.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Scalar ) add_dependencies(LLVMScalarOpts intrinsics_gen) diff --git a/lib/Transforms/Utils/CMakeLists.txt b/lib/Transforms/Utils/CMakeLists.txt index a30eee35fbd..01e811f7ee8 100644 --- a/lib/Transforms/Utils/CMakeLists.txt +++ b/lib/Transforms/Utils/CMakeLists.txt @@ -36,6 +36,10 @@ add_llvm_library(LLVMTransformUtils UnifyFunctionExitNodes.cpp Utils.cpp ValueMapper.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms/Utils ) add_dependencies(LLVMTransformUtils intrinsics_gen) diff --git a/lib/Transforms/Vectorize/CMakeLists.txt b/lib/Transforms/Vectorize/CMakeLists.txt index 07967d883a9..905c069cf85 100644 --- a/lib/Transforms/Vectorize/CMakeLists.txt +++ b/lib/Transforms/Vectorize/CMakeLists.txt @@ -3,6 +3,9 @@ add_llvm_library(LLVMVectorize Vectorize.cpp LoopVectorize.cpp SLPVectorizer.cpp + + ADDITIONAL_HEADER_DIRS + ${LLVM_MAIN_INCLUDE_DIR}/llvm/Transforms ) add_dependencies(LLVMVectorize intrinsics_gen)