[CMake] Globally disable AUTO MOC

Stephen Kelly steveire at gmail.com
Mon Mar 16 14:52:45 EDT 2015


Scott Aron Bloom wrote:

> I have found I can disable it project by project, but I cant seem to
> disable it, globally for every project....
> 
> Is there a way (or point in the cmake flow) to disable it globally?

It is disabled by default. It is defaulted to on for targets following the 
setting of the CMAKE_AUTOMOC variable to ON (or another truthy value). Maybe 
you have that in your code.

Thanks,

Steve.




More information about the CMake mailing list