[CMake] FindBoost Warnings

Brad Bell bradbell at seanet.com
Tue Sep 24 11:51:12 EDT 2019


CMake version 3.10.2 seems to have the problem and it seems to be fixed in 3.13.4.

Thanks

On 9/23/19 6:14 AM, Roger Leigh wrote:
> 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