[cmake-developers] An option to set LINK_INTERFACE_LIBRARIES to empty on all shared library targets?
Stephen Kelly
steveire at gmail.com
Mon Sep 26 07:28:19 EDT 2011
Hi,
In KDE we set the LINK_INTERFACE_LIBRARIES to empty in a wrapper around
add_library. The reason is to reduce the number of libraries which are
linked to by default - developers have to be explicit about what is in the
LINK_INTERFACE.
I was considering patching CMake to do that by setting an option.
http://thread.gmane.org/gmane.comp.kde.devel.buildsystem/6622/focus=72030
Would such a feature of making
set(CMAKE_SET_LINK_INTERFACE_EMPTY ON)
cause the LINK_INTERFACE to be empty for all shared library targets be
accepted into CMake?
Thanks,
Steve.
More information about the cmake-developers
mailing list