[cmake-developers] Default compile options

Robert Goulet Robert.Goulet at autodesk.com
Tue Aug 25 09:27:08 EDT 2015


We do specify the CMAKE_BUILD_TYPE when generating the makefiles. But it still doesn't work. I forgot to mention the generator name is "NMake Makefiles". Perhaps it's a bug?

-----Original Message-----
From: Brad King [mailto:brad.king at kitware.com] 
Sent: Tuesday, August 25, 2015 8:53 AM
To: Robert Goulet <Robert.Goulet at autodesk.com>
Cc: cmake-developers at cmake.org
Subject: Re: [cmake-developers] Default compile options

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