[cmake-developers] An option to set LINK_INTERFACE_LIBRARIES to empty on all shared library targets?
Stephen Kelly
steveire at gmail.com
Sat Oct 1 06:30:48 EDT 2011
Brad King wrote:
> On 9/26/2011 7:28 AM, Stephen Kelly wrote:
>> In KDE we set the LINK_INTERFACE_LIBRARIES to empty in a wrapper around
>> add_library.
> [snip]
>> set(CMAKE_SET_LINK_INTERFACE_EMPTY ON)
>>
>> cause the LINK_INTERFACE to be empty for all shared library targets be
>> accepted into CMake?
>
> Sure. I think the simplest interface is to define a variable whose value
> is used as the property default for LINK_INTERFACE_LIBRARIES:
>
> set(CMAKE_LINK_INTERFACE_LIBRARIES "")
I pushed this to stage as cmake-link-interface-libraries.
More information about the cmake-developers
mailing list