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

Tanguy Krotoff tkrotoff at gmail.com
Wed Sep 30 14:17:43 EDT 2009


On Wed, Sep 30, 2009 at 8:08 PM, Tyler Roscoe <tyler at cryptio.net> wrote:
> So the first change, where you change from /MD to /MT, does work, but
> the second change, where you change /MT back to /MD, does not work?

Exactly

> When I do this trick, I don't mess with the value in the cache; I just
> change CMAKE_C_FLAGS. So maybe remove the CACHE parts and see if that
> helps?

What do you mean by CACHE parts?
Do you mean I should use CMAKE_C_FLAGS instead of CMAKE_C_FLAGS_DEBUG
and friends?


More information about the CMake mailing list