Re: [CMake] COMPILE_DEFINITIONS

2012-12-11 Thread John Drescher
On Tue, Dec 11, 2012 at 2:24 PM, John Drescher 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 appears to support this h

Re: [CMake] COMPILE_DEFINITIONS vs. ADD_DEFINITIONS

2009-05-29 Thread Tyler Roscoe
On Fri, May 29, 2009 at 10:29:19PM -0700, Gregory Sharp wrote: > After some struggle, I learned that ADD_DEFINITIONS and > COMPILE_DEFINITIONS are different. The ADD_DEFINITIONS allows > for -D, but COMPILE_DEFINITIONS does not. I have noticed this as well. > Is this a bug or a feature? I gu

[CMake] COMPILE_DEFINITIONS vs. ADD_DEFINITIONS

2009-05-29 Thread Gregory Sharp
Hi, After some struggle, I learned that ADD_DEFINITIONS and COMPILE_DEFINITIONS are different. The ADD_DEFINITIONS allows for -D, but COMPILE_DEFINITIONS does not. For example, this works: ADD_DEFINITIONS(${wxWidgets_DEFINITIONS}) but not this: SET_SOURCE_FILES_PROPERTIES(mondoshot_main.cp

Re: [CMake] "COMPILE_DEFINITIONS"

2009-04-23 Thread Jared Oberhaus
My interpretation of the question was the simplest thing to think of, which is just to provide a list of symbols that you want defined in a target, as in: set_target_properties(MyDll PROPERTIES COMPILE_DEFINITIONS _USRDLL,UNICODE) It appears to be as simple as separating the symbols with

Re: [CMake] "COMPILE_DEFINITIONS"

2009-03-11 Thread Alexander Neundorf
On Wednesday 11 March 2009, Steven Van Ingelgem wrote: > Hi all, > > > How can I add multiple "COMPILE_DEFINITIONS" for 1 source file? > I tried with a foreach loop, I tried with an array to > "COMPILE_DEFINITIONS". In the first case, the latest is retained, in the > last case only the first one is

[CMake] "COMPILE_DEFINITIONS"

2009-03-11 Thread Steven Van Ingelgem
Hi all, How can I add multiple "COMPILE_DEFINITIONS" for 1 source file? I tried with a foreach loop, I tried with an array to "COMPILE_DEFINITIONS". In the first case, the latest is retained, in the last case only the first one is set. Thanks, Steven* * _