cmake find_package找到库但不包含在构建中

时间:2014-04-05 15:56:34

标签: visual-studio-2012 boost cmake

到目前为止,我已经使用

包含了3个增强库
find_package(Boost COMPONENTS system thread filesystem REQUIRED)

现在我已经添加了program_options

find_package(Boost COMPONENTS system thread filesystem program_options REQUIRED)

但是cmake仅在生成的Visual Studio 2012项目中包含系统,线程和文件系统。这就是我收到此错误的原因:

 2>LINK : fatal error LNK1104: cannot open file 'libboost_program_options-vc110-mt-1_55.lib'

Cmake没有抛出错误:

-- Searching for LibLAS + library
-- Found libLAS version: 1.06.000
-- Boost version: 1.55.0
-- Found the following Boost libraries:
--   system
--   thread
--   filesystem
--   program_options
-- Boost_INCLUDE_DIRS: C:/dev/lib/boost_1_55_0
-- Boost_LIBRARY_DIRS: C:/Boost/lib
-- Configuring done
-- Generating done
-- Build files have been written to: C:/de ...

我做错了吗?

0 个答案:

没有答案
相关问题