[CMake] CMake and FindBoost cannot set the library variables
Xi Shen
davidshen84 at gmail.com
Fri Jun 10 09:50:04 EDT 2016
Hi,
I have a simple CMakeList.txt file:
cmake_minimum_required (VERSION 3.0)
project (winotify)
set(Boost_USE_STATIC_LIBS ON)
set(Boost_USE_MULTITHREADED ON)
find_package(Boost REQUIRED COMPONENTS regex program_options)
add_executable(winotify winotify.cpp)
message(STATUS "xxx ${Boost_program_options_LIBRARY_DEBUG}")
message(STATUS "xxx ${Boost_INCLUDE_DIR}")
message(STATUS "xxx ${Boost_LIBRARY_DIR}")
target_link_libraries(winotify
${Boost_PROGRAMOPTIONS_LIBRARY_DEBUG})
I set up BOOST_ROOT on my Windows system. When I execute cmake, I got:
...
-- Boost version: 1.59.0
-- Found the following Boost libraries:
-- regex
-- program_options
-- xxx
-- xxx C:/Boost/include/boost-1_59
-- xxx
-- Configuring done
...
So the "Boost_INCLUDE_DIR" variable is set, but the other are not...what
did I miss?
Thanks,
David
--
Thanks,
David S.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160610/99a948cb/attachment.html>
More information about the CMake
mailing list