[CMake] FindBoost.cmake: please test

Andreas Schneider mail at cynapses.org
Sun Jan 20 13:25:23 EST 2008


Miguel A. Figueroa-Villanueva wrote:
> I guess there has been some difficulties with the boost version
> number. My suggestion would be to use a directory that includes the
> version number and extract it from there (e.g., boost_include_dir -
> .../include/boost-X.YY). Then you could just have a find_path that
> looks for that dir, having a list of version numbers like:

You can always specify the variables to point the module to the right
direction. The name of the module is "FindBoost.cmake" so the module should
find what you want! At least under Linux cause you have some rules there where
you can find the libraries.

I don't want to specify a path or whatever cause it could be different under
another Unix or Linux system. I want that the module does the work.

Maybe we should simply generate 20-50 possible version numbers.

> 
> find_path(boost_include_dir version.hpp
>   PATHS
>     C:/boost/include
>     /sw/local/include
>   PATH_SUFFIXES
>     boost-1.34.1 boost-1_34_1
>     boost-1.34.0 boost-1_34_0
>     boost-1.34    boost-1_34
>     boost-1.33.1 boost-1_33_1
>     boost-1.33.0 boost-1_33_0
>     boost-1.33    boost-1_33
>   )
> 
> This way it finds the latest available boost version, and allows the
> user to specify a different one simply by selecting a different dir
> for the boost_include_dir.

You can already specify the version you want to use. Simply overwrite
_boost_TEST_VERSIONS.


	-- andreas


-- 
http://www.cynapses.org/ - cybernetic synapses


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 254 bytes
Desc: OpenPGP digital signature
Url : http://public.kitware.com/pipermail/cmake/attachments/20080120/2d20607b/signature-0001.pgp


More information about the CMake mailing list