[CMake] FindBoost warning but working

demelier.david at gmail.com demelier.david at gmail.com
Fri Nov 11 02:54:41 EST 2016


Hi, with the following CMakeLists.txt:

cmake_minimum_required(VERSION 3.6)
project(point)
find_package(Boost REQUIRED COMPONENTS system)

I get this warning:

$ cmake .
CMake Warning at /usr/share/cmake-3.6/Modules/FindBoost.cmake:743
(message):
  Imported targets not available for Boost version 106200
Call Stack (most recent call first):
  /usr/share/cmake-3.6/Modules/FindBoost.cmake:842
(_Boost_COMPONENT_DEPENDENCIES)
  /usr/share/cmake-3.6/Modules/FindBoost.cmake:1395
(_Boost_MISSING_DEPENDENCIES)
  CMakeLists.txt:3 (find_package)


-- Boost version: 1.62.0
-- Found the following Boost libraries:
--   system
-- Configuring done
-- Generating done
-- Build files have been written to: /home/markand/dev/point/build

The code compiles and builds fine though, but I would like to know and
fix this warning.

cmake version is 3.6.3 and boost is 1.62.0.

Regards,

-- 
David



More information about the CMake mailing list