On Sunday February 14 2016 15:20:14 David Faure wrote:

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

That's what I'm using ATM, but cmake has a nasty habit of not taking the user's 
full CXXFLAGS and/or adding its own stuff to the resulting 
CMAKE_CXX_COMPILER_FLAGS_XXX, depending on what build type you're using.

There's also an interaction with the build system I'm targeting; not really 
relevant on here but it does make it less trivial to rely on settings passed 
through the environment.

R.
_______________________________________________
Kde-frameworks-devel mailing list
Kde-frameworks-devel@kde.org
https://mail.kde.org/mailman/listinfo/kde-frameworks-devel

Reply via email to