[CMake] Qt5 cmake imported target include path on MacOS

Christopher W. Steenwyk csteenwyk at gmail.com
Tue Oct 22 14:02:01 EDT 2019


As an additional piece if information, if I run cmake with "-G Xcode" the
command line contains:

   - -F/usr/local/opt/qt/lib
   - -F/Users/<username>/src/<project_name>/xcode/bin


but if I run cmake with "-G Ninja" the command line contains:

   - -iframework /usr/local/opt/qt/lib


On Tue, Oct 22, 2019 at 11:50 AM Christopher W. Steenwyk <
csteenwyk at gmail.com> wrote:

> We are using the imported targets of Qt5 on macOS. When we do this the
> command line shows the include paths to the frameworks directory as
> "-F<path>" where we would have expected "-iframework <path>". The former is
> leading the compiler to give us warnings when compiling the Qt provided
> header.
>
> Any ideas on how to remedy this?
> Thanks!
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20191022/17df5e19/attachment.html>


More information about the CMake mailing list