[CMake] [CMake General][FindBoost] CMake and Boost 1.46.1

Rolf Eike Beer eike at sf-mail.de
Sun May 1 06:09:20 EDT 2011


Am Samstag, 30. April 2011, 22:23:00 schrieb Robert Nelson:
> I have used CMake for a while under Linux, but until recently never
> really tried to make CMakelists truly cross platform.  I would like to
> use CMake with Boost 1.46.1 under windows 7
> I installed boost by downloading the zip and running:
> bootstrap.bat
> bjam
> bjam install
> 
> I am using the CMake 2.84 GUI
> 
> Here is my CMakelists.txt
> 
> 
> 
> PROJECT(schema)
> cmake_minimum_required(VERSION 2.6)
> 
> SET( Boost_NO_SYSTEM_PATHS true )
> SET( BOOST_INCLUDEDIR "C:/Boost/include/boost-1_46_1" )
> SET( BOOST_LIBRARYDIR "C:/Boost/lib" )

SET(Boost_ADDITIONAL_VERSIONS 1.46.1)

> find_package(Boost 1.46 COMPONENTS regex program_options pthread
> filesystem REQUIRED)

Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110501/161680cc/attachment.pgp>


More information about the CMake mailing list