Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt5 cmake imported target include path on MacOS



  • 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!



  • Additionally, this seems to happen when we generate for XCode. If we use -G Ninja, it seems to work. So my guess is this is a CMake XCode generator problem.


Log in to reply