[CMake] compiling a python module
Alan W. Irwin
irwin at beluga.phys.uvic.ca
Mon May 5 18:56:59 EDT 2008
On 2008-05-05 23:46+0100 Jonathan Riddell wrote:
>
> Is there a way to compile a library without adding the "lib" prefix as
> TARGET_LINK_LIBRARIES() does? This is needed for a C python module.
Yes. (Actually, it is ADD_LIBRARY that creates the target and the default
"lib" name of that target.) To override the default use
set_target_properties(<targetname> PROPERTIES PREFIX "")
More information about the CMake
mailing list