[CMake] Boost

Sumit Adhikari sumit.adhikari at gmail.com
Wed Aug 8 06:52:06 EDT 2012


I am searching boost like as follows :

# Boost Library Search
find_package (Boost)
if (Boost_FOUND)
  include_directories(${Boost_INCLUDE_DIRS})
  link_directories(${Boost_LIBRARY_DIRS})
  set(LIBS ${LIBS} ${Boost_LIBRARIES})
else()
   message(FATAL_ERROR "Boost Not Found")
endif (Boost_FOUND)

I see the boost library has been found but include_directories,
link_directories and LIBS are not updated. Is this because I do not have
boost.pc in my system ?

Any other way to resolve this ?

Regards,

-- 
Sumit Adhikari,
Institute of Computer Technology,
Faculty of Electrical Engineering,
Vienna University of Technology,
Gußhausstraße 27-29,1040 Vienna
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120808/fb79f74b/attachment.htm>


More information about the CMake mailing list