Latest nightly build still fails to find boost 1.66
I am on Windows 10, Visual Studio 2017, latest CMake nightly build (3.10.20180110-gc91f0e). I am quite excited with the merge of !1621 (closed), but after testing it out it is still failing to find boost 1.66 for me. Here is a minimal example to reproduce the problem.
cmake_minimum_required(VERSION 3.9)
project(example)
find_package(Boost COMPONENTS system REQUIRED)
add_library(${PROJECT_NAME} mylib.h mylib.cpp)
target_link_libraries(${PROJECT_NAME} PUBLIC Boost::system)
After running cmake configuration here is the error
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/FindBoost.cmake:1954 (message):
Unable to find the requested Boost libraries.
Boost version: 1.66.0
Boost include path:
C:/Users/xxxxx/vcpkg/installed/x64-windows/include
Could not find the following Boost libraries:
boost_system
No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the
directory containing Boost libraries or BOOST_ROOT to the location of
Boost.
It looks to me CMake fails to recognize boost_system
as a target and tries to treat it as a plain library. Would appreciate if someone can look into this.