[cmake-developers] Policy for INTERFACE_LINK_LIBRARIES

Brad King brad.king at kitware.com
Fri Nov 30 11:25:59 EST 2012


On 11/30/2012 11:07 AM, Stephen Kelly wrote:
> Brad King wrote:
>> Please restart your INTERFACE_LINK_LIBRARIES topic on master
> 
> Thanks, I've done that now.

The target_link_libraries test fails:

 http://open.cdash.org/testDetails.php?test=168404487&build=2691368
 ...
 CMake Warning (dev) in CMakeLists.txt:
  The INTERFACE_LINK_LIBRARIES and LINK_INTERFACE_LIBRARIES are not the same
  for target "depC".

  NEW content is "$<1:depA>"

  OLD content is "$<1:depA>"

  Policy CMP0019 is not set: Use INTERFACE_LINK_LIBRARIES instead of
  LINK_INTERFACE_LIBRARIES_<CONFIG>.  Run "cmake --help-policy CMP0019" for
  policy details.  Use the cmake_policy command to set the policy and
  suppress this warning.
 ...
 NMAKE : warning U4006: special macro undefined : '$<1:depA>'
 LINK : fatal error LNK1104: cannot open file '1:depA>.obj'

Also, for static libraries the exports should not look at the
INTERFACE_LINK_LIBRARIES property.

-Brad



More information about the cmake-developers mailing list