cmake - 3.8
I compiled and installed boost libraries in /usr/local/lib/, but unable to make cmake detect boost program_options through the command find_package(Boost REQUIRED program_options)
. All other libraries find_package(Boost REQUIRED thread system)
are found, and only adding program_options throws an error. I have tried quite a lot of things and kind of clueless - what is special about program_options.
-- Boost version: 1.63.0
-- Found the following Boost libraries:
-- filesystem
-- regex
-- serialization
-- unit_test_framework
-- iostreams
-- thread
-- system
-- chrono
-- date_time
-- atomic
The boost make was successful and it built the program_options library ( I can see it in the /usr/local/lib/ folder along with other boost libraries) . I just fail to understand, why would nt cmake find it?
Error :
Unable to find the requested Boost libraries.
Boost version: 1.63.0
Boost include path: /usr/local/include
Could not find the following Boost libraries:
boost_program_options
Some (but not all) of the required Boost libraries were found. You may
need to install these additional Boost libraries. Alternatively, set
BOOST_LIBRARYDIR to the directory containing Boost libraries or BOOST_ROOT
to the location of Boost.
Directory structure
-rw-r--r-- 1 root root 1558464 Aug 12 15:46 /usr/local/lib/libboost_program_options.a
lrwxrwxrwx 1 root root 34 Aug 12 15:46 /usr/local/lib/libboost_program_options.so -> libboost_program_options.so.1.63.0*
-rwxr-xr-x 1 root root 658920 Aug 12 15:46 /usr/local/lib/libboost_program_options.so.1.63.0*