[CMake] FindBoost

Surya Kiran Gullapalli suryakiran.gullapalli at gmail.com
Wed May 7 10:57:02 EDT 2008


Hello all,
Any body find problem in using FindBoost with cmake-2.6.

I'm using g++ compiler on SLES 10.0 with boost 1.35.

I'm able to find boost include dir and boost library dir, but some how I was
not getting the boost components correctly.

I tried this.

Find_Package (Boost 1.35.0
COMPONENTS date_time filesystem signals)

I was getting Boost_DATE_TIME_LIBRARY_DEBUG-NOTFOUND.

I've browsed the FindBoost.cmake file and found out a problem with
STRING(REGEX REPLACE ...) command around line 377.

It is removing the '.' from the version number. I've modified the line
removing the extra white space after the version number to this

STRING (REGEX REPLACE ".* ([0-9])\\.([0-9])\\.[0-9].*" "\\1\\2"
_boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})

Thought somebody can fix this in trunk.

Thanks,
Surya
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080507/75fd3549/attachment.htm>


More information about the CMake mailing list