[cmake-developers] Default compile options

Brad King brad.king at kitware.com
Tue Aug 25 08:53:14 EDT 2015


On 08/24/2015 05:17 PM, Robert Goulet wrote:
> set(CMAKE_C_FLAGS_DEBUG "-D_DEBUG")
> in a Makefile those flags are not even passed to the compiler.

In the Makefile and Ninja generators the per-config flags are used
only for the configuration named in CMAKE_BUILD_TYPE.

-Brad



More information about the cmake-developers mailing list