MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0014986 | CMake | Modules | public | 2014-06-23 10:54 | 2016-06-10 14:31 |
| Reporter | mband | ||||
| Assigned To | Kitware Robot | ||||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | x86_64 | OS | Ubuntu | OS Version | 14.04 |
| Product Version | CMake 3.0 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0014986: FindBoost with component thread does not properly link with boost_system | ||||
| Description | When just finding the thread component of Boost it appears that one also has to link with boost_system. From the Boost documentation it looks like this change was introduced with version 1.52 (see http://www.boost.org/doc/libs/1_52_0/doc/html/thread/build.html [^]). | ||||
| Steps To Reproduce | FIND_PACKAGE(Boost COMPONENTS thread) target_link_libraries(my_target ${Boost_LIBRARIES}) Resulting in a linker error like the following: /usr/bin/ld: CMakeFiles/<something>.dir/<something>.o: undefined reference to symbol '_ZN5boost6system15system_categoryEv' //usr/lib/x86_64-linux-gnu/libboost_system.so.1.54.0: error adding symbols: DSO missing from command line Linking with boost_system (i.e. -lboost_system or target_link_libraries(my_target boost_system)) solves the issue, but it should be done automatically when finding the thread component of Boost. | ||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2014-06-23 10:54 | mband | New Issue | |||
| 2014-06-23 11:28 | Brad King | Note Added: 0036234 | |||
| 2014-06-23 11:28 | Brad King | Status | new => backlog | ||
| 2014-06-23 11:28 | Brad King | Product Version | CMake 2.8.12.2 => CMake 3.0 | ||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042570 | |||
| 2016-06-10 14:29 | Kitware Robot | Status | backlog => resolved | ||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | ||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | ||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||