[CMake] Library_EXPORTS

Brad King brad.king at kitware.com
Fri Mar 18 15:34:46 EST 2005


Bart De Boeck wrote:
>   Thanks for your response !
>   The sources are indeed looking for the upper-case version : Visual Studio
> generates by default LIBRARY_EXPORTS statements in Win32 Projects. Is the
> CMake behaviour configurable ?

Yes.  Put this after your ADD_LIBRARY command:

SET_TARGET_PROPERTIES(mylib PROPERTIES DEFINE_SYMBOL MYLIB_EXPORTS)

-Brad


More information about the CMake mailing list