[cmake-developers] CMake 2.8.12 transitive link regression?
Brad King
brad.king at kitware.com
Tue Oct 29 15:06:03 EDT 2013
Steve,
Likely no one noticed this during the RC cycle because there is no
change in behavior until cmake_minimum_required version is raised
or CMP0022 is set to NEW explicitly.
On 10/29/2013 02:03 PM, Clinton Stimpson wrote:
> target_link_libraries(foo2 foo)
>
> cmake_minimum_required(VERSION 2.8.12)
>
> Then foo is dropped and the app links only with foo2, which gives me a link
> error.
When CMP0022 is NEW the INTERFACE_LINK_LIBRARIES is always the link
interface without the link implementation fallback, but the tll plain
signature does not populate INTERFACE_LINK_LIBRARIES either. This is
not correct.
Somehow you'll have to track the tll signatures used in order to
populate INTERFACE_LINK_LIBRARIES properly with the plain signature
if no LINK_INTERFACE_LIBRARIES or keyword signature is used.
We'll need a 2.8.12.1 for this, ASAP.
-Brad
More information about the cmake-developers
mailing list