MantisBT - CMake | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0013663 | CMake | (No Category) | public | 2012-11-08 11:37 | 2014-06-02 08:37 | |||||
Reporter | sebp | |||||||||
Assigned To | Brad King | |||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | |||||
Status | closed | Resolution | fixed | |||||||
Platform | Linux | OS | Fedora | OS Version | 17 | |||||
Product Version | CMake 2.8.9 | |||||||||
Target Version | CMake 3.0 | Fixed in Version | CMake 3.0 | |||||||
Summary | 0013663: FindBoost documentation example should clarify it only finds static libraries | |||||||||
Description | FindBoost does not find any libraries. The actual library is e.g. located at /usr/lib64/libboost_program_options-mt.so on Fedora 17 which is not recognized by CMake. | |||||||||
Steps To Reproduce | Create a project which needs to link to boost library. Running cmake . -DBoost_DEBUG=TRUE -DBOOST_LIBRARYDIR=/usr/lib64 results in -- [ /usr/share/cmake/Modules/FindBoost.cmake:566 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42 -- [ /usr/share/cmake/Modules/FindBoost.cmake:568 ] Boost_USE_MULTITHREADED = ON -- [ /usr/share/cmake/Modules/FindBoost.cmake:570 ] Boost_USE_STATIC_LIBS = ON -- [ /usr/share/cmake/Modules/FindBoost.cmake:572 ] Boost_USE_STATIC_RUNTIME = OFF -- [ /usr/share/cmake/Modules/FindBoost.cmake:574 ] Boost_ADDITIONAL_VERSIONS = -- [ /usr/share/cmake/Modules/FindBoost.cmake:576 ] Boost_NO_SYSTEM_PATHS = -- [ /usr/share/cmake/Modules/FindBoost.cmake:644 ] Declared as CMake or Environmental Variables: -- [ /usr/share/cmake/Modules/FindBoost.cmake:646 ] BOOST_ROOT = -- [ /usr/share/cmake/Modules/FindBoost.cmake:648 ] BOOST_INCLUDEDIR = -- [ /usr/share/cmake/Modules/FindBoost.cmake:650 ] BOOST_LIBRARYDIR = /usr/lib64 -- [ /usr/share/cmake/Modules/FindBoost.cmake:652 ] _boost_TEST_VERSIONS = 1.56.0;1.56;1.55.0;1.55;1.54.0;1.54;1.53.0;1.53;1.52.0;1.52;1.51.0;1.51;1.50.0;1.50;1.49.0;1.49;1.48.0;1.48;1.47.0;1.47;1.46.1;1.46.0;1.46;1.45.0;1.45;1.44.0;1.44;1.43.0;1.43;1.42.0;1.42 -- [ /usr/share/cmake/Modules/FindBoost.cmake:734 ] location of version.hpp: /usr/include/boost/version.hpp -- [ /usr/share/cmake/Modules/FindBoost.cmake:753 ] version.hpp reveals boost 1.48.0 -- [ /usr/share/cmake/Modules/FindBoost.cmake:785 ] guessed _boost_COMPILER = -gcc47 -- [ /usr/share/cmake/Modules/FindBoost.cmake:795 ] _boost_MULTITHREADED = -mt -- [ /usr/share/cmake/Modules/FindBoost.cmake:838 ] _boost_RELEASE_ABI_TAG = - -- [ /usr/share/cmake/Modules/FindBoost.cmake:840 ] _boost_DEBUG_ABI_TAG = -d -- [ /usr/share/cmake/Modules/FindBoost.cmake:883 ] _boost_LIBRARY_SEARCH_DIRS = /usr/lib64;/usr/include/lib;/usr/include/../lib;/usr/include/stage/lib;C:/boost/lib;C:/boost;/boost/boost_1_48_0/lib;/boost/boost_1_48/lib;/boost/lib;/boost;/sw/local/lib -- [ /usr/share/cmake/Modules/FindBoost.cmake:961 ] Searching for PROGRAM_OPTIONS_LIBRARY_RELEASE: boost_program_options-gcc47-mt-1_48;boost_program_options-gcc47-mt;boost_program_options-mt-1_48;boost_program_options-mt;boost_program_options -- [ /usr/share/cmake/Modules/FindBoost.cmake:993 ] Searching for PROGRAM_OPTIONS_LIBRARY_DEBUG: boost_program_options-gcc47-mt-d-1_48;boost_program_options-gcc47-mt-d;boost_program_options-mt-d-1_48;boost_program_options-mt-d;boost_program_options-mt;boost_program_options -- [ /usr/share/cmake/Modules/FindBoost.cmake:1107 ] Boost_FOUND = FALSE CMake Error at /usr/share/cmake/Modules/FindBoost.cmake:1191 (message): Unable to find the requested Boost libraries. Boost version: 1.48.0 Boost include path: /usr/include The following Boost libraries could not be found: boost_program_options No Boost libraries were found. You may need to set BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT to the location of Boost. Call Stack (most recent call first): CMakeLists.txt:9 (find_package) -- Configuring incomplete, errors occurred! | |||||||||
Additional Information | ||||||||||
Tags | No tags attached. | |||||||||
Relationships |
| |||||||||
Attached Files | boost-example.zip (952) 2012-11-08 11:37 https://public.kitware.com/Bug/file/4558/boost-example.zip | |||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2012-11-08 11:37 | sebp | New Issue | ||||||||
2012-11-08 11:37 | sebp | File Added: boost-example.zip | ||||||||
2012-11-08 13:20 | Brad King | Note Added: 0031497 | ||||||||
2012-11-08 13:25 | Brad King | Note Added: 0031498 | ||||||||
2012-11-08 14:02 | sebp | Note Added: 0031499 | ||||||||
2012-11-08 14:09 | Brad King | Note Added: 0031500 | ||||||||
2012-11-08 14:12 | sebp | Note Added: 0031501 | ||||||||
2012-11-08 14:18 | Brad King | Note Added: 0031502 | ||||||||
2012-11-08 14:18 | Brad King | Status | new => resolved | |||||||
2012-11-08 14:18 | Brad King | Resolution | open => no change required | |||||||
2012-11-08 14:28 | sebp | Note Added: 0031503 | ||||||||
2012-11-08 14:28 | sebp | Status | resolved => feedback | |||||||
2012-11-08 14:28 | sebp | Resolution | no change required => reopened | |||||||
2012-11-08 14:33 | Brad King | Note Added: 0031504 | ||||||||
2013-11-01 11:42 | Brad King | Note Added: 0034308 | ||||||||
2013-11-01 11:42 | Brad King | Assigned To | => Brad King | |||||||
2013-11-01 11:42 | Brad King | Status | feedback => resolved | |||||||
2013-11-01 11:42 | Brad King | Resolution | reopened => fixed | |||||||
2013-11-01 11:42 | Brad King | Fixed in Version | => CMake 3.0 | |||||||
2013-11-01 11:42 | Brad King | Target Version | => CMake 3.0 | |||||||
2013-11-01 11:42 | Brad King | Summary | FindBoost.cmake does not find => FindBoost documentation example should clarify it only finds static libraries | |||||||
2013-11-01 11:42 | Brad King | Relationship added | related to 0014235 | |||||||
2013-11-01 11:44 | Brad King | Note Added: 0034309 | ||||||||
2014-06-02 08:37 | Robert Maynard | Note Added: 0035977 | ||||||||
2014-06-02 08:37 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|