[CMake] Recompile with different flags
Matthew Woehlke
mw_triad at users.sourceforge.net
Mon Jan 19 19:52:41 EST 2009
Adam Weiss wrote:
> I thought only LINK_FLAGS could be added there, I'll try it when I get
> back to my work machine.
Not AFAIK; I'm using COMPILE_FLAGS as well as LINK_FLAGS per-target.
> As for ignoring the flags, I don't think that will work since several files have
>
> #ifndef VAR_NAME
> <code>
> #else
> <code>
> #endif
If it's just definitions, at worst you can change things to use a unique
definition per library being built (and if needed, define other things
based on that), since you can fiddle with preprocessor stuff in the
source files. Things like optimization flags would be a much more
serious problem.
--
Matthew
Please do not quote my e-mail address unobfuscated in message bodies.
--
morphir: so much confusion :S kmake, kdemake, qmake make cmake etc.
logixoul: you forgot cmakekde :)
morphir: and bakemeacake
More information about the CMake
mailing list