On Tue, Dec 11, 2012 at 2:24 PM, John Drescher <[email protected]> wrote:
> My goal is to a specific definition to the Debug and RelWithDebInfo
> configurations for all targets in the project but not to the Release
> configuration when using VisualStudio. I believe that
> COMPILE_DEFINITIONS<CONFIG> appears to support this however I am
> unsure if I have to get the previous value of the COMPILE_DEFINITIONS
> before setting the new value?
>


It looks like

set_property(
    DIRECTORY
    APPEND PROPERTY COMPILE_DEFINITIONS_DEBUG MyDef
)

set_property(
    DIRECTORY
    APPEND PROPERTY COMPILE_DEFINITIONS_RELWITHDEBINFO MyDef
)

is what I am after.

John
--

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