[CMake] FindBoost Warnings
    Roger Leigh 
    rleigh at codelibre.net
       
    Mon Sep 23 09:14:50 EDT 2019
    
    
  
On 23/09/2019 14:05, Brad Bell wrote:
> When the target system does not have boost, the user gets the warning:
>
> CMake Warning at /usr/share/cmake-3.10/Modules/FindBoost.cmake:567 
> (message):
>   Imported targets and dependency information not available for Boost 
> version
>   (all versions older than 1.33)
> Call Stack (most recent call first):
>   /usr/share/cmake-3.10/Modules/FindBoost.cmake:907 
> (_Boost_COMPONENT_DEPENDENCIES)
>   /usr/share/cmake-3.10/Modules/FindBoost.cmake:1558 
> (_Boost_MISSING_DEPENDENCIES)
>   CMakeLists.txt:245 (FIND_PACKAGE)
>
> This is not a problem because if the user's system does not have boost,
> they will no be using the case that the examples cover.
>
> How do I suppress this warning ?
I think it's already fixed in more recent CMake versions.  It now only 
prints that message when Boost is found, and older than 1.33.
Regards,
Roger
    
    
More information about the CMake
mailing list