[CMake] add_library(... MODULE ...) naming scheme
Russell L. Carter
rcarter at esturion.net
Mon Jan 30 19:48:45 EST 2012
On 01/30/2012 03:09 PM, Eric Noulard wrote:
> 2012/1/30 Russell L. Carter <rcarter at esturion.net>:
[...]
>> 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?
>>
[...]
>
> cmake --help-property PREFIX
> cmake --help-variable CMAKE_SHARED_LIBRARY_PREFIX
>
> for easy finding out about "prefix"
> cmake --help-property-list | grep -i prefix
> cmake --help-variable-list | grep -i prefix
>
>
Aha. Very nice. I see that from these clues that I need to
set(CMAKE_SHARED_MODULE_PREFIX) in my module making
macro, and indeed, that works like a champ. I do like
the scheme for finding out about variables and properties.
Thanks Eric!
Russell
More information about the CMake
mailing list