[cmake-developers] [CMake 0015174]: TARGET_LINK_LIBRARIES adds libraries to INTERFACE_LINK_LIBRARIES without LINK_INTERFACE_LIBRARIES

Mantis Bug Tracker mantis at public.kitware.com
Sun Sep 28 09:44:09 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15174 
====================================================================== 
Reported By:                Marc Seebold
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15174
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-09-28 09:44 EDT
Last Modified:              2014-09-28 09:44 EDT
====================================================================== 
Summary:                    TARGET_LINK_LIBRARIES adds libraries to
INTERFACE_LINK_LIBRARIES without LINK_INTERFACE_LIBRARIES
Description: 
TARGET_LINK_LIBRARIES(MYTARGET PRIVATE "mylib.lib")

adds "mylib.lib" to "INTERFACE_LINK_LIBRARIES" property of target "MYTARGET".
However, only in LINK_INTERFACE_LIBRARIES mode this property should be set.

Steps to Reproduce: 
TARGET_LINK_LIBRARIES(MYTARGET PRIVATE "mylib.lib")

Additional Information: 
Hotfix: SET_PROPERTY(TARGET MYTARGET PROPERTY INTERFACE_LINK_LIBRARIES "")
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-09-28 09:44 Marc Seebold   New Issue                                    
======================================================================



More information about the cmake-developers mailing list