Zvonimir Rakamaric
2014-Sep-30 15:15 UTC
[LLVMdev] Why is llvm/Config/config.h not being installed any more with cmake in LLVM 3.5?
Hi, So when I look at CMakeLists.txt in LLVM 3.5, I can observes this on line 591: PATTERN "config.h" EXCLUDE Note that this line is not present in LLVM 3.4. This causes config.h not to be copied into include/llvm/Config/config.h, which is unlike previous LLVM versions. This is turn causes my project to fail when trying to build it with cmake... Why is config.h not being copied over any more when using cmake? Is this expected behavior? Thanks, -- Zvonimir -- http://zvonimir.info http://soarlab.org/
Duncan P. N. Exon Smith
2014-Sep-30 16:31 UTC
[LLVMdev] Why is llvm/Config/config.h not being installed any more with cmake in LLVM 3.5?
> On Sep 30, 2014, at 8:15 AM, Zvonimir Rakamaric <zvonimir at cs.utah.edu> wrote: > > Hi, > > So when I look at CMakeLists.txt in LLVM 3.5, I can observes this on line 591: > PATTERN "config.h" EXCLUDE > > Note that this line is not present in LLVM 3.4. > > This causes config.h not to be copied into > include/llvm/Config/config.h, which is unlike previous LLVM versions. > This is turn causes my project to fail when trying to build it with > cmake... > > Why is config.h not being copied over any more when using cmake? > > Is this expected behavior? > > Thanks, > -- Zvonimir`git blame` tells me this was r210766: CMake: don't install the internal config.h header Background: http://lists.cs.uiuc.edu/pipermail/llvmdev/2014-June/073707.html You should transition to `llvm/Config/llvm-config.h`.