[CMake] How to set different compiler flags for two projects in one solution

Tyler Roscoe tyler at cryptio.net
Mon Jun 22 12:13:19 EDT 2009


Remember to reply to the list.

On Mon, Jun 22, 2009 at 05:58:40PM +0200, ariasgore at gmx.de wrote:
> > I would use get_target_properties(), followed by string(REPLACE ...),
> > followed by set_target_properties(). Will that strategy work for you?
>
> This works indeed, but it is somehow hacky since I need to mess with
> every other project in the file, even if they would usually remain
> unaffected.

I don't understand the problem. What do you mean "they would usually
remain unaffected"?

tyler


More information about the CMake mailing list