[Cmake] How to remove a #define?
Andy Cedilnik
andy . cedilnik at kitware . com
22 Sep 2003 13:48:59 -0400
Hi Rob,
Unfortunately there is no way to remove -D right now. You can be more
selective when you add it though. Look through "Defining a variable for
the compiler in one directory only" thread for doing that. That said, I
did add a feature request to the CMake bug tracker.
Andy
On Mon, 2003-09-22 at 13:32, Mathews, Rob wrote:
> The CMake documentation says that you do this
>
> ADD_DEFINITIONS - Add -D define flags to command line for environments.
> Usage: ADD_DEFINITIONS(-DFOO -DBAR ...) Add -D define flags to command line
> for environments.
>
> to define a variable for the preprocessor. I'm wondering how you do the
> reverse - how to undefine an variable for the preprocessor.
>
> FYI, I've got an example where I want
> a default of "UNICODE" defined for all the projects, except
> in this particular subdir, where I don't want UNICODE
> defined.
>
> My environment is .NET 2003.
>
> Is there any way to do this?