[CMake] undef a symbol

Totte Karlsson totte at dunescientific.com
Tue Jun 12 18:16:35 EDT 2012


Seem
that add_definitions(/UTheSymbol) did the job!

-totte

On 6/12/2012 2:57 PM, Totte Karlsson wrote:
> Hi,
> I have a folder in which I build a library. For doing so I have a
> add_definitions(-DMySymbol) line
>
> It seems that subfolders inherits this,which I don't want. How do I "undef" the
> MySymbol symbol in a subfolder CMakeList file?
>
> -totte
>


More information about the CMake mailing list