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 >