[cmake-developers] [CMake 0016057]: FindBoost: No imported target when components not specified

Mantis Bug Tracker mantis at public.kitware.com
Sat Apr 9 09:58:42 EDT 2016


The following issue has been SUBMITTED. 
====================================================================== 
https://cmake.org/Bug/view.php?id=16057 
====================================================================== 
Reported By:                Tatsuyuki Ishi
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   16057
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2016-04-09 09:58 EDT
Last Modified:              2016-04-09 09:58 EDT
====================================================================== 
Summary:                    FindBoost: No imported target when components not
specified
Description: 
Here's an example:
=============
project(...)
find_package(Boost REQUIRED)
add_executable(...)
target_link_libraries(... Boost::Boost)
*BOOM*
=============

But this works:
=============
find_package(Boost COMPONENTS system REQUIRED)
target_link_libraries(... Boost::Boost)
=============

This is hard to use, and should be considered as bug and fixed.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2016-04-09 09:58 Tatsuyuki Ishi New Issue                                    
======================================================================



More information about the cmake-developers mailing list