Easiest way is to Make a subfolder called x86 and move the files there.  Then selectively include them from the subfolder.  Host does something similar if you want an example <br><div class="gmail_quote">On Thu, Dec 18, 2014 at 3:08 AM Aidan Dodds <<a href="mailto:Aidan@codeplay.com">Aidan@codeplay.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Selectively including .cpp files in CMake may be harder then it first looks since the LLVM cmake automaticaly throw an error when it finds unincluded .cpp files.<br>
When I tried to bypass RegisterContextWindows_x86.cpp for x64 targets I get the following error:<br>
<br>
  CMake Error at cmake/modules/<u></u>LLVMProcessSources.cmake:70 (message):<br>
    Found unknown source file<br>
    D:/tiplldb/llvm/tools/lldb/<u></u>source/Plugins/Process/<u></u>Windows/<u></u>RegisterContextWindows_x86.cpp<br>
<br>
<br>
    Please update<br>
    D:/tiplldb/llvm/tools/lldb/<u></u>source/Plugins/Process/<u></u>Windows/CMakeLists.txt<br>
<br>
  Call Stack (most recent call first):<br>
    cmake/modules/<u></u>LLVMProcessSources.cmake:44 (llvm_check_source_file_list)<br>
    tools/lldb/CMakeLists.txt:230 (llvm_process_sources)<br>
    tools/lldb/source/Plugins/<u></u>Process/Windows/CMakeLists.<u></u>txt:20 (add_lldb_library)<br>
<br>
For reference, here was my modifications to lldb/source/plugins/process/<u></u>windows/cmakelists.txt:<br>
<br>
  set(LLVM_NO_RTTI 1)<br>
<br>
  include_directories(.)<br>
  include_directories(../<u></u>Utility)<br>
<br>
  set(<u></u>lldbPluginProcessWindowsSource<u></u>s<br>
    DebuggerThread.cpp<br>
    DynamicLoaderWindows.cpp<br>
    LocalDebugDelegate.cpp<br>
    ProcessWindows.cpp<br>
    TargetThreadWindows.cpp<br>
    )<br>
<br>
  if (CMAKE_SIZEOF_VOID_P EQUAL 4)<br>
    list(<u></u>lldbPluginProcessWindowsSource<u></u>s APPEND<br>
      RegisterContextWindows_x86.cpp<br>
      )<br>
  endif()<br>
<br>
  add_lldb_library(<u></u>lldbPluginProcessWindows<br>
    ${<u></u>lldbPluginProcessWindowsSource<u></u>s}<br>
    )<br>
<br>
Do you know any way to work around this?<br>
Or do you have any suggestions how we can fix the build for x64 targets in the short term?<br>
<br>
Thanks<br>
<br>
<br>
<a href="http://reviews.llvm.org/D6704" target="_blank">http://reviews.llvm.org/D6704</a><br>
<br>
EMAIL PREFERENCES<br>
  <a href="http://reviews.llvm.org/settings/panel/emailpreferences/" target="_blank">http://reviews.llvm.org/<u></u>settings/panel/<u></u>emailpreferences/</a><br>
<br>
<br>
</blockquote></div>