<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 - 'The dependency target "cxx" of target "check-cxxabi" does not exist.'"
   href="https://bugs.llvm.org/show_bug.cgi?id=44182">44182</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>'The dependency target "cxx" of target "check-cxxabi" does not exist.'
          </td>
        </tr>

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

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

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>arthur.j.odwyer@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>While trying to solve another problem (related to build failures in the "cxx"
target), I tried making a build that enabled *only* the "clang" and "libcxxabi"
projects (but not the "libcxx" project).
This fails with a CMake error.
Ideally, it would either Just Work (by auto-enabling all dependencies of every
enabled project), or give a customized and helpful error message (e.g. "you
can't build libcxxabi alone; please add 'libcxx' to LLVM_ENABLE_PROJECTS and
try again").

====

Here's the current output:

$ cmake -G 'Ninja' -DLLVM_ENABLE_PROJECTS="clang;libcxxabi"
-DCMAKE_BUILD_TYPE=RelWithDebInfo ../llvm
[...]

-- Configuring done
CMake Error at cmake/modules/AddLLVM.cmake:1456 (add_dependencies):
  The dependency target "cxx" of target "check-all" does not exist.
Call Stack (most recent call first):
  CMakeLists.txt:991 (add_lit_target)


CMake Error at /tmp/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1456
(add_dependencies):
  The dependency target "cxx" of target "check-cxxabi" does not exist.
Call Stack (most recent call first):
  /tmp/llvm-project/llvm/cmake/modules/AddLLVM.cmake:1477 (add_lit_target)
  /tmp/llvm-project/libcxxabi/test/CMakeLists.txt:52 (add_lit_testsuite)


-- Generating done
-- Build files have been written to: /tmp/llvm-project/build

====

This is on OS X High Sierra 10.13.6, with a native toolchain of
$ clang --version
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin17.7.0
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
$ cmake --version
cmake version 3.12.0

CMake suite maintained and supported by Kitware (kitware.com/cmake).</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>