Important: Please read the 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?

  • 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