<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 - Absolute path of TERMINFO_LIB leaks into exported CMake config"
   href="https://bugs.llvm.org/show_bug.cgi?id=50144">50144</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Absolute path of TERMINFO_LIB leaks into exported CMake config
          </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>MacOS X
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>gjasny@googlemail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Hello,

on macOS the exported / installed LLVMExports.cmake file contains the following
absolute path to the curses library:

```
set_target_properties(LLVMSupport PROPERTIES
  INTERFACE_LINK_LIBRARIES
"m;ZLIB::ZLIB;/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk/usr/lib/libcurses.tbd;LLVMDemangle"
)
```

This is bad because even with minor Xcode updates the SDK path changes. (e.g.
from MacOSX11.1.sdk to MacOSX11.3.sdk). Instead, linking against "curses" would
be sufficient (like it is done in that line for libm).

The issue has been introduced by:

commit 3c7bfbd6831b2144229734892182d403e46d7baf
Author: Petr Hosek <<a href="mailto:phosek@google.com">phosek@google.com</a>>
Date:   Mon Aug 31 15:11:39 2020 -0700
Subject: [CMake] Use find_library for ncurses

Thanks,
Gregor</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>