[cmake-developers] [CMake 0015451]: Setting MAP_IMPORTED_CONFIG_<CONFIG> hides IMPORTED_LOCATION

Mantis Bug Tracker mantis at public.kitware.com
Tue Mar 17 07:31:00 EDT 2015


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15451 
====================================================================== 
Reported By:                Bjoern Thiel
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15451
Category:                   CMake
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2015-03-17 07:30 EDT
Last Modified:              2015-03-17 07:30 EDT
====================================================================== 
Summary:                    Setting MAP_IMPORTED_CONFIG_<CONFIG> hides
IMPORTED_LOCATION
Description: 
I thought IMPORTED_LOCATION is a fall back for IMPORTED_LOCATION_<CONFIG> and
should be found in any case. But cmTarget::GetMappedConfig gives up too early:
if(!mappedConfigs.empty() && !*loc && !*imp) { return false; } (line 5540)
Example: set(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO RELEASE) and try to use
Qt5::moc in the RelWithDebInfo configuration.

Steps to Reproduce: 
See above.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2015-03-17 07:30 Bjoern Thiel   New Issue                                    
======================================================================



More information about the cmake-developers mailing list