[cmake-developers] [CMake 0014276]: cmake --find-package doesn't handle debug/optimized/general keywords

Mantis Bug Tracker mantis at public.kitware.com
Sun Jul 7 21:16:59 EDT 2013


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=14276 
====================================================================== 
Reported By:                Patrick Mihelich
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   14276
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2013-07-07 21:16 EDT
Last Modified:              2013-07-07 21:16 EDT
====================================================================== 
Summary:                    cmake --find-package doesn't handle
debug/optimized/general keywords
Description: 
CMake find/config modules may return libraries prefixed with "debug",
"optimized" or "general" keywords to link different libraries depending on the
build type. These are handled specially by target_link_libraries. The
--find-package mode treats them as libraries to link against instead.

Steps to Reproduce: 
With the Ubuntu system install of protobuf:

$ cmake --find-package -DNAME=Protobuf -DCOMPILER_ID=GNU -DLANGUAGE=CXX
-DMODE=LINK
-rdynamic -loptimized -lprotobuf -ldebug -lprotobuf -ldebug
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2013-07-07 21:16 Patrick MihelichNew Issue                                    
======================================================================




More information about the cmake-developers mailing list