[CMake] FindBoost and gcc 4.3.2
Olivier Tournaire
olitour at gmail.com
Thu Oct 23 14:52:29 EDT 2008
Hi all,
I use boost in one of my project. However, cmake (2.6.2) does not seem to be
able to find the libs. With the previous version of gcc (4.2.4), I did not
have any problem. Here is what is in my CMakeLists.txt :
# Find BOOST
# SET( BOOST_LIBRARYDIR /usr/local/lib )
SET(Boost_USE_MULTITHREAD ON)
FIND_PACKAGE( Boost 1.36.0 COMPONENTS filesystem system thread )
IF( Boost_FOUND )
ELSE( Boost_FOUND )
MESSAGE(FATAL_ERROR "Boost not found ! Please set Boost path ...")
ENDIF( Boost_FOUND )
My first idea was to recompile boost with the new gcc version. However, I
still have the problem. For info, here are the filesystem libs available in
/usr/local/lib :
libboost_filesystem-gcc42-mt-1_36.so
libboost_filesystem-gcc42-mt-1_36.so.1.36.0
libboost_filesystem-gcc42-mt.a
libboost_filesystem-gcc42-mt.so
libboost_filesystem-gcc43-1_36.a
libboost_filesystem-gcc43-1_36.so
libboost_filesystem-gcc43-1_36.so.1.36.0
libboost_filesystem-gcc43.a
libboost_filesystem-gcc43-d-1_36.a
libboost_filesystem-gcc43-d-1_36.so
libboost_filesystem-gcc43-d-1_36.so.1.36.0
libboost_filesystem-gcc43-d.a
libboost_filesystem-gcc43-d.so
libboost_filesystem-gcc43-mt-1_36.a
libboost_filesystem-gcc43-mt-1_36.so
libboost_filesystem-gcc43-mt-1_36.so.1.36.0
libboost_filesystem-gcc43-mt.a
libboost_filesystem-gcc43-mt-d-1_36.a
libboost_filesystem-gcc43-mt-d-1_36.so
libboost_filesystem-gcc43-mt-d-1_36.so.1.36.0
libboost_filesystem-gcc43-mt-d.a
libboost_filesystem-gcc43-mt-d.so
libboost_filesystem-gcc43-mt-s-1_36.a
libboost_filesystem-gcc43-mt-s.a
libboost_filesystem-gcc43-mt-sd-1_36.a
libboost_filesystem-gcc43-mt-sd.a
libboost_filesystem-gcc43-mt.so
libboost_filesystem-gcc43-s-1_36.a
libboost_filesystem-gcc43-s.a
libboost_filesystem-gcc43-sd-1_36.a
libboost_filesystem-gcc43-sd.a
libboost_filesystem-gcc43.so
Any idea where the problem comes from ?
Best regards,
Olivier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081023/d6b49ef9/attachment.htm>
More information about the CMake
mailing list