Sorry for the rapid fire replies, but this configuration works for me: install(DIRECTORY include/ DESTINATION include # FILES_MATCHING PATTERN "*.def" PATTERN "*.h" PATTERN "*.td" PATTERN "*.inc" PATTERN ".svn" EXCLUDE ) install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ DESTINATION include # FILES_MATCHING PATTERN "*.def" PATTERN "*.h" PATTERN "*.gen" PATTERN "*.inc" # Exclude include/llvm/CMakeFiles/intrinsics_gen.dir, matched by "*.def" PATTERN "CMakeFiles" EXCLUDE PATTERN ".svn" EXCLUDE ) It seems like there is either a bug with FILES_MATCHING or an issue with the way it is being used. The results of which can be seen at the end of this mail. Kind regards, Samuel Appendix A: Install the project... -- Install configuration: "Release" -- Installing: /usr/local/llvm-2.8/include -- Installing: /usr/local/llvm-2.8/include/llvm -- Installing: /usr/local/llvm-2.8/include/llvm/ADT -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/APFloat.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/APInt.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/APSInt.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/BitVector.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/DAGDeltaAlgorithm.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/DeltaAlgorithm.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/DenseMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/DenseMapInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/DenseSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/DepthFirstIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/EquivalenceClasses.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/FoldingSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/GraphTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableIntervalMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableList.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ImmutableSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/IndexedMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/IntrusiveRefCntPtr.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/NullablePtr.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/Optional.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/OwningPtr.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/PointerIntPair.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/PointerUnion.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/PostOrderIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/PriorityQueue.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SCCIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/STLExtras.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ScopedHashTable.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SetOperations.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SetVector.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SmallBitVector.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SmallPtrSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SmallSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SmallString.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SmallVector.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/SparseBitVector.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/Statistic.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/StringExtras.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/StringMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/StringRef.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/StringSet.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/StringSwitch.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/Trie.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/Triple.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/Twine.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/UniqueVector.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ValueMap.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/VectorExtras.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ilist.h -- Installing: /usr/local/llvm-2.8/include/llvm/ADT/ilist_node.h -- Installing: /usr/local/llvm-2.8/include/llvm/AbstractTypeUser.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/AliasAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/AliasSetTracker.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/CFGPrinter.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/CallGraph.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/CaptureTracking.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/CodeMetrics.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ConstantFolding.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ConstantsScanner.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/DOTGraphTraitsPass.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/DebugInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/DomPrinter.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/DominatorInternals.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Dominators.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/FindUsedTypes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/IVUsers.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/InlineCost.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/InstructionSimplify.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Interval.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/IntervalIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/IntervalPartition.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LazyValueInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LibCallAliasAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LibCallSemantics.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Lint.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LiveValues.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Loads.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LoopDependenceAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LoopInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/LoopPass.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/MemoryBuiltins.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/MemoryDependenceAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/PHITransAddr.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Passes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/PointerTracking.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/PostDominators.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ProfileInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ProfileInfoLoader.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ProfileInfoTypes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/RegionInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/RegionIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/RegionPrinter.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ScalarEvolution.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ScalarEvolutionExpander.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ScalarEvolutionExpressions.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ScalarEvolutionNormalization.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/SparsePropagation.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Trace.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/ValueTracking.h -- Installing: /usr/local/llvm-2.8/include/llvm/Analysis/Verifier.h -- Installing: /usr/local/llvm-2.8/include/llvm/Argument.h -- Installing: /usr/local/llvm-2.8/include/llvm/Assembly -- Installing: /usr/local/llvm-2.8/include/llvm/Assembly/AssemblyAnnotationWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/Assembly/Parser.h -- Installing: /usr/local/llvm-2.8/include/llvm/Assembly/PrintModulePass.h -- Installing: /usr/local/llvm-2.8/include/llvm/Assembly/Writer.h -- Installing: /usr/local/llvm-2.8/include/llvm/Attributes.h -- Installing: /usr/local/llvm-2.8/include/llvm/AutoUpgrade.h -- Installing: /usr/local/llvm-2.8/include/llvm/BasicBlock.h -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode/Archive.h -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode/BitCodes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode/BitstreamReader.h -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode/BitstreamWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode/LLVMBitCodes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Bitcode/ReaderWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/CMakeLists.txt -- Installing: /usr/local/llvm-2.8/include/llvm/CallGraphSCCPass.h -- Installing: /usr/local/llvm-2.8/include/llvm/CallingConv.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/Analysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/AsmPrinter.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/BinaryObject.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/CalcSpillWeights.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/CallingConvLower.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/FastISel.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/FunctionLoweringInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/GCMetadata.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/GCMetadataPrinter.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/GCStrategy.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/GCs.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ISDOpcodes.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/IntrinsicLowering.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/JITCodeEmitter.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LatencyPriorityQueue.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LinkAllAsmWriterComponents.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LinkAllCodegenComponents.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LiveInterval.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LiveIntervalAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LiveStackAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/LiveVariables.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachORelocation.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineBasicBlock.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineCodeEmitter.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineCodeInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineConstantPool.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineDominators.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineFrameInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineFunction.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineFunctionAnalysis.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineFunctionPass.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineInstr.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineInstrBuilder.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineJumpTableInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineLocation.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineLoopInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineMemOperand.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineModuleInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineModuleInfoImpls.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineOperand.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachinePassRegistry.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineRegisterInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineRelocation.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/MachineSSAUpdater.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ObjectCodeEmitter.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/Passes.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/PostRAHazardRecognizer.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ProcessImplicitDefs.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/PseudoSourceValue.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/RegAllocRegistry.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/RegisterCoalescer.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/RegisterScavenging.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/RuntimeLibcalls.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ScheduleDAG.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ScheduleHazardRecognizer.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/SchedulerRegistry.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/SelectionDAG.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/SelectionDAGISel.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/SelectionDAGNodes.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/SlotIndexes.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/TargetLoweringObjectFileImpl.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ValueTypes.h -- Installing: /usr/local/llvm-2.8/include/llvm/CodeGen/ValueTypes.td -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/Action.h -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/AutoGenerated.h -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/BuiltinOptions.h -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/Common.td -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/CompilationGraph.h -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/Error.h -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/Main.h -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/Main.inc -- Installing: /usr/local/llvm-2.8/include/llvm/CompilerDriver/Tool.h -- Installing: /usr/local/llvm-2.8/include/llvm/Config -- Installing: /usr/local/llvm-2.8/include/llvm/Config/AsmParsers.def.in -- Installing: /usr/local/llvm-2.8/include/llvm/Config/AsmPrinters.def.in -- Installing: /usr/local/llvm-2.8/include/llvm/Config/Disassemblers.def.in -- Installing: /usr/local/llvm-2.8/include/llvm/Config/Targets.def.in -- Installing: /usr/local/llvm-2.8/include/llvm/Config/config.h.cmake -- Installing: /usr/local/llvm-2.8/include/llvm/Config/config.h.in -- Installing: /usr/local/llvm-2.8/include/llvm/Config/llvm-config.h.cmake -- Installing: /usr/local/llvm-2.8/include/llvm/Config/llvm-config.h.in -- Installing: /usr/local/llvm-2.8/include/llvm/Constant.h -- Installing: /usr/local/llvm-2.8/include/llvm/Constants.h -- Installing: /usr/local/llvm-2.8/include/llvm/DerivedTypes.h -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine/ExecutionEngine.h -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine/GenericValue.h -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine/Interpreter.h -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine/JIT.h -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine/JITEventListener.h -- Installing: /usr/local/llvm-2.8/include/llvm/ExecutionEngine/JITMemoryManager.h -- Installing: /usr/local/llvm-2.8/include/llvm/Function.h -- Installing: /usr/local/llvm-2.8/include/llvm/GVMaterializer.h -- Installing: /usr/local/llvm-2.8/include/llvm/GlobalAlias.h -- Installing: /usr/local/llvm-2.8/include/llvm/GlobalValue.h -- Installing: /usr/local/llvm-2.8/include/llvm/GlobalVariable.h -- Installing: /usr/local/llvm-2.8/include/llvm/InlineAsm.h -- Installing: /usr/local/llvm-2.8/include/llvm/InstrTypes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Instruction.def -- Installing: /usr/local/llvm-2.8/include/llvm/Instruction.h -- Installing: /usr/local/llvm-2.8/include/llvm/Instructions.h -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicInst.h -- Installing: /usr/local/llvm-2.8/include/llvm/Intrinsics.h -- Installing: /usr/local/llvm-2.8/include/llvm/Intrinsics.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsARM.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsAlpha.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsCellSPU.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsPowerPC.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsX86.td -- Installing: /usr/local/llvm-2.8/include/llvm/IntrinsicsXCore.td -- Installing: /usr/local/llvm-2.8/include/llvm/LLVMContext.h -- Installing: /usr/local/llvm-2.8/include/llvm/LinkAllPasses.h -- Installing: /usr/local/llvm-2.8/include/llvm/LinkAllVMCore.h -- Installing: /usr/local/llvm-2.8/include/llvm/Linker.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC -- Installing: /usr/local/llvm-2.8/include/llvm/MC/EDInstInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/ELFObjectWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCAsmInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCAsmInfoCOFF.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCAsmInfoDarwin.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCAsmLayout.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCAssembler.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCCodeEmitter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCContext.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCDirectives.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCDisassembler.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCDwarf.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCELFSymbolFlags.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCExpr.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCFixup.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCInst.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCInstPrinter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCLabel.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCMachOSymbolFlags.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCObjectStreamer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCObjectWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/AsmCond.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/AsmLexer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCAsmLexer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCAsmParser.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCAsmParserExtension.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCParser/MCParsedAsmOperand.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSection.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSectionCOFF.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSectionELF.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSectionMachO.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCStreamer.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCSymbol.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MCValue.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/MachObjectWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/MC/SectionKind.h -- Installing: /usr/local/llvm-2.8/include/llvm/Metadata.h -- Installing: /usr/local/llvm-2.8/include/llvm/Module.h -- Installing: /usr/local/llvm-2.8/include/llvm/OperandTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/Operator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Pass.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassAnalysisSupport.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassManager.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassManagers.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassRegistry.h -- Installing: /usr/local/llvm-2.8/include/llvm/PassSupport.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support -- Installing: /usr/local/llvm-2.8/include/llvm/Support/AlignOf.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Allocator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/CFG.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/COFF.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/CallSite.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Casting.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/CommandLine.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Compiler.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/ConstantFolder.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/ConstantRange.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/CrashRecoveryContext.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/DOTGraphTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/DataFlow.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Debug.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/DebugLoc.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Dwarf.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/DynamicLinker.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/ELF.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/ErrorHandling.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/FileUtilities.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Format.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/FormattedStream.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/GetElementPtrTypeIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/GraphWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/IRBuilder.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/IRReader.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/InstIterator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/InstVisitor.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/LeakDetector.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/MachO.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/ManagedStatic.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/MathExtras.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/MemoryBuffer.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/MemoryObject.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/MutexGuard.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/NoFolder.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/OutputBuffer.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/PassNameParser.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/PatternMatch.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/PluginLoader.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/PointerLikeTypeTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/PredIteratorCache.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/PrettyStackTrace.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Recycler.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/RecyclingAllocator.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Regex.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Registry.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/RegistryParser.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/SMLoc.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/SourceMgr.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/StableBasicBlockNumbering.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/StandardPasses.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/StringPool.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/SystemUtils.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/TargetFolder.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/Timer.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/TypeBuilder.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/ValueHandle.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/circular_raw_ostream.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/raw_os_ostream.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/raw_ostream.h -- Installing: /usr/local/llvm-2.8/include/llvm/Support/type_traits.h -- Installing: /usr/local/llvm-2.8/include/llvm/SymbolTableListTraits.h -- Installing: /usr/local/llvm-2.8/include/llvm/System -- Installing: /usr/local/llvm-2.8/include/llvm/System/AIXDataTypesFix.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Alarm.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Atomic.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/DataTypes.h.cmake -- Installing: /usr/local/llvm-2.8/include/llvm/System/DataTypes.h.in -- Installing: /usr/local/llvm-2.8/include/llvm/System/Disassembler.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/DynamicLibrary.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Errno.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Host.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/IncludeFile.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/LICENSE.TXT -- Installing: /usr/local/llvm-2.8/include/llvm/System/Memory.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Mutex.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Path.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Process.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Program.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/RWMutex.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Signals.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Solaris.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/ThreadLocal.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Threading.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/TimeValue.h -- Installing: /usr/local/llvm-2.8/include/llvm/System/Valgrind.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target -- Installing: /usr/local/llvm-2.8/include/llvm/Target/Mangler.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/SubtargetFeature.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/Target.td -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetAsmBackend.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetAsmLexer.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetAsmParser.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetCallingConv.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetCallingConv.td -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetData.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetELFWriterInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetFrameInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetInstrDesc.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetInstrInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetInstrItineraries.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetIntrinsicInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetJITInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetLowering.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetLoweringObjectFile.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetMachine.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetOpcodes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetOptions.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetRegisterInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetRegistry.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetSchedule.td -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetSelect.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetSelectionDAG.td -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetSelectionDAGInfo.h -- Installing: /usr/local/llvm-2.8/include/llvm/Target/TargetSubtarget.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/IPO -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/IPO/InlinerPass.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/IPO.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Instrumentation.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/RSProfiling.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Scalar.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/AddrModeMatcher.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/BasicBlockUtils.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/BasicInliner.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/BuildLibCalls.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/Cloning.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/FunctionUtils.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/Local.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/PromoteMemToReg.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/SSAUpdater.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/SSAUpdaterImpl.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/UnrollLoop.h -- Installing: /usr/local/llvm-2.8/include/llvm/Transforms/Utils/ValueMapper.h -- Installing: /usr/local/llvm-2.8/include/llvm/Type.h -- Installing: /usr/local/llvm-2.8/include/llvm/TypeSymbolTable.h -- Installing: /usr/local/llvm-2.8/include/llvm/Use.h -- Installing: /usr/local/llvm-2.8/include/llvm/User.h -- Installing: /usr/local/llvm-2.8/include/llvm/Value.h -- Installing: /usr/local/llvm-2.8/include/llvm/ValueSymbolTable.h -- Installing: /usr/local/llvm-2.8/include/llvm-c -- Installing: /usr/local/llvm-2.8/include/llvm-c/Analysis.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/BitReader.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/BitWriter.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/Core.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/EnhancedDisassembly.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/ExecutionEngine.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/LinkTimeOptimizer.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/Target.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/Transforms -- Installing: /usr/local/llvm-2.8/include/llvm-c/Transforms/IPO.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/Transforms/Scalar.h -- Installing: /usr/local/llvm-2.8/include/llvm-c/lto.h -- Installing: /usr/local/llvm-2.8/include -- Installing: /usr/local/llvm-2.8/include/llvm -- Installing: /usr/local/llvm-2.8/include/llvm/Config -- Installing: /usr/local/llvm-2.8/include/llvm/Config/AsmParsers.def -- Installing: /usr/local/llvm-2.8/include/llvm/Config/AsmPrinters.def -- Installing: /usr/local/llvm-2.8/include/llvm/Config/Disassemblers.def -- Installing: /usr/local/llvm-2.8/include/llvm/Config/Targets.def -- Installing: /usr/local/llvm-2.8/include/llvm/Config/config.h -- Installing: /usr/local/llvm-2.8/include/llvm/Config/llvm-config.h -- Installing: /usr/local/llvm-2.8/include/llvm/Intrinsics.gen -- Installing: /usr/local/llvm-2.8/include/llvm/Makefile -- Installing: /usr/local/llvm-2.8/include/llvm/System -- Installing: /usr/local/llvm-2.8/include/llvm/System/DataTypes.h -- Installing: /usr/local/llvm-2.8/include/llvm/cmake_install.cmake -- Installing: /usr/local/llvm-2.8/lib/libLLVMSupport.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMSystem.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMCore.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMCodeGen.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMSelectionDAG.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMAsmPrinter.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMBitReader.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMBitWriter.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMTransformUtils.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMInstrumentation.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMInstCombine.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMScalarOpts.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMipo.a -- Installing: /usr/local/llvm-2.8/lib/LLVMHello.so -- Installing: /usr/local/llvm-2.8/lib/libLLVMLinker.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMAnalysis.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMipa.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMMC.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMMCParser.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMMCDisassembler.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86CodeGen.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86Info.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86AsmPrinter.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86AsmParser.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMX86Disassembler.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMExecutionEngine.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMInterpreter.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMJIT.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMTarget.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMAsmParser.a -- Installing: /usr/local/llvm-2.8/lib/libLLVMArchive.a -- Installing: /usr/local/llvm-2.8/bin/llvm-config -- Installing: /usr/local/llvm-2.8/bin/opt -- Installing: /usr/local/llvm-2.8/bin/llvm-as -- Installing: /usr/local/llvm-2.8/bin/llvm-dis -- Installing: /usr/local/llvm-2.8/bin/llvm-mc -- Installing: /usr/local/llvm-2.8/bin/llc -- Installing: /usr/local/llvm-2.8/bin/llvm-ranlib -- Installing: /usr/local/llvm-2.8/bin/llvm-ar -- Installing: /usr/local/llvm-2.8/bin/llvm-nm -- Installing: /usr/local/llvm-2.8/bin/llvm-ld -- Installing: /usr/local/llvm-2.8/bin/llvm-prof -- Installing: /usr/local/llvm-2.8/bin/llvm-link -- Installing: /usr/local/llvm-2.8/bin/lli -- Installing: /usr/local/llvm-2.8/bin/llvm-extract -- Installing: /usr/local/llvm-2.8/bin/llvm-diff -- Installing: /usr/local/llvm-2.8/bin/bugpoint -- Installing: /usr/local/llvm-2.8/lib/BugpointPasses.so -- Installing: /usr/local/llvm-2.8/bin/llvm-bcanalyzer -- Installing: /usr/local/llvm-2.8/bin/llvm-stub -- Installing: /usr/local/llvm-2.8/lib/libEnhancedDisassembly.a -- Installing: /usr/local/llvm-2.8/share/llvm/cmake/LLVM.cmake -- Installing: /usr/local/llvm-2.8/share/llvm/cmake/LLVMConfig.cmake -- Installing: /usr/local/llvm-2.8/share/llvm/cmake/LLVMLibDeps.cmake -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101002/0d844b26/attachment.html>
Samuel Williams <space.ship.traveller at gmail.com> writes:> Sorry for the rapid fire replies, but this configuration works for me:It "works" on the sense that it installs the headers, but removing the FILES_MATCHING clause changes the semantics of the command: the subsequent PATTERNs that controls which files are to be installesd becomes ineffective.> install(DIRECTORY include/ > DESTINATION include > # FILES_MATCHING > PATTERN "*.def" > PATTERN "*.h" > PATTERN "*.td" > PATTERN "*.inc" > PATTERN ".svn" EXCLUDE > ) > > install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ > DESTINATION include > # FILES_MATCHING > PATTERN "*.def" > PATTERN "*.h" > PATTERN "*.gen" > PATTERN "*.inc" > # Exclude include/llvm/CMakeFiles/intrinsics_gen.dir, matched by "*.def" > PATTERN "CMakeFiles" EXCLUDE > PATTERN ".svn" EXCLUDE > ) > > It seems like there is either a bug with FILES_MATCHING or an issue > with the way it is being used.It is clear that CMake is not behaving as it should in your machine. Please file a bug report on the CMake bug tracker with the necessary information for reproducing it (versions, commands for building and installing LLVM starting from the "svn checkout", etc) [snip]
Dear Óscar, If you review the install log I sent, you will see that the patterns still appear to work as expected. Despite that this may be a flaws in CMake, it may be prudent to see if it is possible to fix this for Mac OS X users? It may also affect other platforms? According to the documentation: The FILES_MATCHING option may be given before the first match option to disable installation of files (but not directories) not matched by any expression. I'm not sure I understand exactly what this means, but it seems to appear that it it is superfluous? Previously, it states: A PATTERN will match only complete file names. So, the patterns only apply to files anyway, and not directories? I fail to see the point of FILES_MATCHING, but I may just be misinterpreting the documentation. Kind regards, Samuel On 2/10/2010, at 12:23 PM, Óscar Fuentes wrote:> The following message is a courtesy copy of an article > that has been posted to gmane.comp.compilers.llvm.devel as well. > > Samuel Williams <space.ship.traveller at gmail.com> writes: > >> Sorry for the rapid fire replies, but this configuration works for me: > > It "works" on the sense that it installs the headers, but removing the > FILES_MATCHING clause changes the semantics of the command: the > subsequent PATTERNs that controls which files are to be installesd > becomes ineffective. > >> install(DIRECTORY include/ >> DESTINATION include >> # FILES_MATCHING >> PATTERN "*.def" >> PATTERN "*.h" >> PATTERN "*.td" >> PATTERN "*.inc" >> PATTERN ".svn" EXCLUDE >> ) >> >> install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/ >> DESTINATION include >> # FILES_MATCHING >> PATTERN "*.def" >> PATTERN "*.h" >> PATTERN "*.gen" >> PATTERN "*.inc" >> # Exclude include/llvm/CMakeFiles/intrinsics_gen.dir, matched by "*.def" >> PATTERN "CMakeFiles" EXCLUDE >> PATTERN ".svn" EXCLUDE >> ) >> >> It seems like there is either a bug with FILES_MATCHING or an issue >> with the way it is being used. > > It is clear that CMake is not behaving as it should in your > machine. Please file a bug report on the CMake bug tracker with the > necessary information for reproducing it (versions, commands for > building and installing LLVM starting from the "svn checkout", etc) > > [snip]-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20101002/44b2ac08/attachment.html>