<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Clang/tools CMakeLists.txt should not unconditionally include tests?"
   href="https://bugs.llvm.org/show_bug.cgi?id=52020">52020</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Clang/tools CMakeLists.txt should not unconditionally include tests?
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Build scripts
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>cmake
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jujjyl@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The script clang/tools/CMakeLists.txt unconditionally adds testing related
subdirectories to the build, e.g.

add_clang_subdirectory(apinotes-test)
add_clang_subdirectory(clang-import-test)
add_clang_subdirectory(c-index-test)
if(CLANG_ENABLE_ARCMT)
  add_clang_subdirectory(arcmt-test)
  add_clang_subdirectory(c-arcmt-test)
endif()

Should these be gated behind either CLANG_INCLUDE_TESTS or LLVM_INCLUDE_TESTS?

What I am seeing is that even when I do a CMake build with
-DCLANG_INCLUDE_TESTS=OFF and -DLLVM_INCLUDE_TESTS=OFF, I get these test
related files getting built.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>