On Wed, Nov 18, 2009 at 07:31:06AM -0800, Kenneth Riddile wrote:
> I'm using cmake to generate projects for Visual Studio 9.  I've
> noticed that when I use COMPILE_DEFINITIONS_RELEASE to add a
> preprocessor directive, it's only added to the "Release" configuration
> in the Visual Studio project, and not the "MinSizeRel" and
> "RelWithDebInfo" configurations.  How can I add a preprocessor
> directive for all three of these release configurations?

I think you need to add COMPILE_DEFINITIONS_MINSIZEREL etc. I would do
something like:

foreach (configuration MINSIZEREL RELWITHDEBINFO MYCONFIG)
    ... COMPILE_DEFINITIONS_${configuration} "SomeDef" ...
endforeach ()

How would you expect it to work?

tyler
_______________________________________________
Powered by www.kitware.com

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

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

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to