<div dir="ltr">The way we have done this with Linux native register contexts was to notionally leave the files in the build, but completely #ifdef out their contents (see NativeRegisterConextLinux_arm.cpp).<div>It's not very nice, but I think it's better than having six subfolders, each with a single cpp file. If you'll need to group more than one file this way, then maybe a subfolder would make more sense though.</div><div><br></div><div>pl</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 1 December 2016 at 00:30, Zachary Turner via lldb-dev <span dir="ltr"><<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Unfortunately you will need to separate them at the directory levels.</div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 30, 2016 at 4:29 PM Dmitry Mikulin via lldb-dev <<a href="mailto:lldb-dev@lists.llvm.org" target="_blank">lldb-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br class="m_5471620034683590982gmail_msg">
<br class="m_5471620034683590982gmail_msg">
I’m trying to conditionally add source files to the lldb build based on a cmake configure time variable. I get the following type of errors for all sources not included in the build:<br class="m_5471620034683590982gmail_msg">
<br class="m_5471620034683590982gmail_msg">
CMake Error at cmake/modules/<wbr>LLVMProcessSources.cmake:83 (message):<br class="m_5471620034683590982gmail_msg">
  Found unknown source file<br class="m_5471620034683590982gmail_msg">
  /homes/dmitrym/buildspace/<wbr>llvm-tot/llvm/tools/lldb/<wbr>source/Plugins/Process/<wbr>FreeBSD/FreeBSDThread.cpp<br class="m_5471620034683590982gmail_msg">
<br class="m_5471620034683590982gmail_msg">
  Please update<br class="m_5471620034683590982gmail_msg">
  /homes/dmitrym/buildspace/<wbr>llvm-tot/llvm/tools/lldb/<wbr>source/Plugins/Process/<wbr>FreeBSD/CMakeLists.txt<br class="m_5471620034683590982gmail_msg">
<br class="m_5471620034683590982gmail_msg">
Is there a way to work around/fix it or do I need to separate the files at the directory level?<br class="m_5471620034683590982gmail_msg">
<br class="m_5471620034683590982gmail_msg">
Thanks.<br class="m_5471620034683590982gmail_msg">
Dmitry.<br class="m_5471620034683590982gmail_msg">
<br class="m_5471620034683590982gmail_msg">
______________________________<wbr>_________________<br class="m_5471620034683590982gmail_msg">
lldb-dev mailing list<br class="m_5471620034683590982gmail_msg">
<a href="mailto:lldb-dev@lists.llvm.org" class="m_5471620034683590982gmail_msg" target="_blank">lldb-dev@lists.llvm.org</a><br class="m_5471620034683590982gmail_msg">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" class="m_5471620034683590982gmail_msg" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br class="m_5471620034683590982gmail_msg">
</blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/lldb-dev</a><br>
<br></blockquote></div><br></div>