MantisBT - CMake
View Issue Details
0013958CMakeCMakepublic2013-02-27 11:072013-07-01 09:39
Utkarsh Ayachit 
 
normalminorhave not tried
closedno change required 
CMake 2.8.9 
 
0013958: FindBoost on Ubuntu behaves erratically
I'm using system boost.

By default the variables are set to:

 Boost_DIR Boost_DIR-NOTFOUND
 Boost_INCLUDE_DIR /usr/include
 Boost_LIBRARY_DIRS /usr/lib
 Boost_SYSTEM_LIBRARY /usr/lib/libboost_system-mt.a
 Boost_SYSTEM_LIBRARY_DEBUG /usr/lib/libboost_system-mt.a
 Boost_SYSTEM_LIBRARY_RELEASE /usr/lib/libboost_system-mt.a
 Boost_THREAD_LIBRARY /usr/lib/libboost_thread-mt.a
 Boost_THREAD_LIBRARY_DEBUG /usr/lib/libboost_thread-mt.a
 Boost_THREAD_LIBRARY_RELEASE /usr/lib/libboost_thread-mt.a

Since I want to use shared libs (there's a fPIC problem which Ubuntu 12.10 boost builds), I changed the .a to .so. CMake forces some of the variables back to the following:

 Boost_SYSTEM_LIBRARY /usr/lib/libboost_system-mt.so
 Boost_SYSTEM_LIBRARY_DEBUG /usr/lib/libboost_system-mt.a
 Boost_SYSTEM_LIBRARY_RELEASE /usr/lib/libboost_system-mt.a
 Boost_THREAD_LIBRARY /usr/lib/libboost_thread-mt.so
 Boost_THREAD_LIBRARY_DEBUG /usr/lib/libboost_thread-mt.a
 Boost_THREAD_LIBRARY_RELEASE /usr/lib/libboost_thread-mt.a

I cannot get the _DEBUG/_RELEASE to be .so.


No tags attached.
Issue History
2013-02-27 11:07Utkarsh AyachitNew Issue
2013-02-27 11:16Utkarsh AyachitNote Added: 0032396
2013-02-27 11:28Utkarsh AyachitNote Added: 0032397
2013-02-27 12:00Brad KingStatusnew => resolved
2013-02-27 12:00Brad KingResolutionopen => no change required
2013-07-01 09:39Robert MaynardNote Added: 0033436
2013-07-01 09:39Robert MaynardStatusresolved => closed

Notes
(0032396)
Utkarsh Ayachit   
2013-02-27 11:16   
This is a developer bug. On inspecting the code, I see the following:

set(Boost_USE_STATIC_LIBS ON)
(0032397)
Utkarsh Ayachit   
2013-02-27 11:28   
It works fine when I remove "set(Boost_USE_STATIC_LIBS ON)". Feel free to close.
(0033436)
Robert Maynard   
2013-07-01 09:39   
Closing resolved issues that have not been updated in more than 4 months.