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
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
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
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
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
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*
*
_