View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013958CMakeCMakepublic2013-02-27 11:072013-07-01 09:39
ReporterUtkarsh Ayachit 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake 2.8.9 
Target VersionFixed in Version 
Summary0013958: FindBoost on Ubuntu behaves erratically
DescriptionI'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.


TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0032396)
Utkarsh Ayachit (reporter)
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 (reporter)
2013-02-27 11:28

It works fine when I remove "set(Boost_USE_STATIC_LIBS ON)". Feel free to close.
(0033436)
Robert Maynard (manager)
2013-07-01 09:39

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2013-02-27 11:07 Utkarsh Ayachit New Issue
2013-02-27 11:16 Utkarsh Ayachit Note Added: 0032396
2013-02-27 11:28 Utkarsh Ayachit Note Added: 0032397
2013-02-27 12:00 Brad King Status new => resolved
2013-02-27 12:00 Brad King Resolution open => no change required
2013-07-01 09:39 Robert Maynard Note Added: 0033436
2013-07-01 09:39 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team