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.k...@kitware.com] 
Sent: Tuesday, August 25, 2015 8:53 AM
To: Robert Goulet <robert.gou...@autodesk.com>
Cc: cmake-developers@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

-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers

Reply via email to