[CMake] myproject_EXPORTS

Brad King brad.king at kitware.com
Thu Jan 27 09:06:22 EST 2005


Martin Trudeau wrote:

> In fact, I would have liked to know if it were possible
> (assuming there were no bug) to remove this define
> when building a shared library.

I don't think it's possible to remove the definition.  It shouldn't hurt 
anything to have an extra preprocessor symbol floating around that 
nothing uses.  If it really is conflicting you can change it to another 
name:

SET_TARGET_PROPERTIES(mylib PROPERTIES DEFINE_SYMBOL mylib_WHATEVER)

-Brad



More information about the CMake mailing list