[Development] CMake UNITY_BUILD ( QTBUG-109394 )

Sérgio Martins sergio.martins at kdab.com
Fri Jan 27 15:53:50 CET 2023

On 2023-01-23 14:25, Jörg Bornemann via Development wrote:
> One ugliness I've noticed: CMAKE_UNITY_BUILD is documented to not play
> well with CMAKE_EXPORT_COMPILE_COMMANDS. This might hurt users of
> clangd (using clangd with Qt's sources).

Yes, but probably you won't be developing with CMAKE_UNITY_BUILD, since 
it ruins incremental build times anyway.

It's great for compiling 3rdparty and any module you're *not* 

Sérgio Martins | sergio.martins at kdab.com | Senior Software Engineer
Klarälvdalens Datakonsult AB, a KDAB Group company
Tel: Sweden (HQ) +46-563-540090, USA +1-866-777-KDAB(5322)
KDAB - The Qt, C++ and OpenGL Experts

More information about the Development mailing list