building everything with a set of specific preprocessor token(s)/definition(s)?

David Faure faure at kde.org
Sun Feb 14 14:20:14 UTC 2016


On Sunday 14 February 2016 15:01:43 René J.V. Bertin wrote:
> Hi,
> 
> I'd like to investigate something Qt-related that would require me to build all frameworks with a specific set of preprocessor tokens defined. Rather than patching all toplevel CMake files I'm hoping for way to define those tokens in the cmake invocation, IOW on the cmake command line.
> It seems CMake itself doesn't make that easy because of a lack incremental mechanisms, but maybe there's a hook in the ECM that I've overlooked?

export CXXFLAGS="-DMYDEFINE=1" before running cmake should do the trick.

-- 
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE Frameworks 5



More information about the Kde-frameworks-devel mailing list