[CMake] How to get rid off predefine "XXX_EXPORTS" @add_library(XXX SHARED ...)

"Sören Freudiger" muffmolch at gmx.de
Wed Jan 5 04:05:59 EST 2011


Hi
I have a problem. After running CMake (VS 2003/2008 project) there's always a EXPORT preprocessor define in my project setting that I don't need.

add_library(XXX SHARED ...)

--> predefine XXX_EXPORTS

I manually set this predefine in a correct way (means in upper case!). CMake generate something like:

testProject_EXPORTS

but it should be:

TESTPOJECT_EXPORTS

Is there a way to supress this predfine?

Best regards 
SirAnn



-- 
NEU: FreePhone - kostenlos mobil telefonieren und surfen!			
Jetzt informieren: http://www.gmx.net/de/go/freephone


More information about the CMake mailing list