<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">The problem with this article is that it makes it seem like you really should choose one or the other, and that is just not so.<div class=""><br class=""></div><div class="">At this point I believe all of the LLVM sub-projects support both in-tree and out-of-tree builds with LLVM. Using the LLVM CMake packages that are installed as part of most LLVM distributions you can write your CMake scripts as if they are for in-source builds, and supporting out-of-source is a minimal effort.</div><div class=""><br class=""></div><div class="">To see how that works in practice please take a look at Clang's root CMakeLists.txt. Near the top there is a comment about standalone build support, and the required code is underneath. You'll find similarly CMake code in all the LLVM sub-projects which we use to support building each project separately.</div><div class=""><br class=""></div><div class="">-Chris</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Feb 18, 2017, at 1:37 PM, Stanislav Pankevich via llvm-dev <<a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class=""><div class="">Hello,<br class=""><br class="">Does anyone have a positive experience of maintaining CMake configs for both in-source and out-of-source kinds of hosting in the same project?<br class=""><br class="">P.S. <a href="http://stanislaw.github.io/2017/02/18/llvm-in-source-vs-out-of-source.html" class="">http://stanislaw.github.io/2017/02/18/llvm-in-source-vs-out-of-source.html</a>.<br class=""><br class=""></div>Thanks,<br class=""><br class=""></div>Stanislav<br class=""><br class=""></div>
_______________________________________________<br class="">LLVM Developers mailing list<br class=""><a href="mailto:llvm-dev@lists.llvm.org" class="">llvm-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev<br class=""></div></blockquote></div><br class=""></div></body></html>