[CMake] add_library(... MODULE ...) naming scheme

Russell L. Carter rcarter at esturion.net
Mon Jan 30 16:46:18 EST 2012


Greetings,

I see from the docs that using add_library to build a MODULE results
in the module being named according to the "conventions of the native
platform (such as lib<name>.a or <name>.lib)".  And indeed MODULE
names are so generated, as I see from actually building one.

I would like to get rid of the "lib" prefix.  I am happy with the
default suffix generation.  Is there an easy way to get rid of the
"lib" prefix?

A pointer to the place where the relevant variable or property or
whatever is documented would be great, source code file is just
fine, if that's all there is.

Thanks,
Russell


More information about the CMake mailing list