Details
-
Bug
-
Resolution: Won't Do
-
P3: Somewhat important
-
None
-
5.11.3
-
None
Description
CMake in some cases generates -isystem /usr/include with Qt5::Gui. This option breaks compilation. I got this problem when tried to add in my application PCH support with nanoant CMakePCHCompiler. CMakePCHCompiler "introduce" a new language CXXPCH. With standard CXX language CMake internally strip /usr/include and it not appears in compilation process. But CMake do it only for own languages. So for details see issue https://github.com/nanoant/CMakePCHCompiler/issues/33.
Also I added a patch which resolve this problem.