-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
CMake output:
$ cmake ..
-- The C compiler identification is GNU 11.4.0
-- The CXX compiler identification is GNU 11.4.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Error at /usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:141 (find_package):
Could not find a package configuration file provided by
"boost_program_options" (requested version 1.74.0) with any of the
following names:
boost_program_optionsConfig.cmake
boost_program_options-config.cmake
Add the installation prefix of "boost_program_options" to CMAKE_PREFIX_PATH
or set "boost_program_options_DIR" to a directory containing one of the
above files. If "boost_program_options" provides a separate development
package or SDK, be sure it has been installed.
Call Stack (most recent call first):
/usr/lib/x86_64-linux-gnu/cmake/Boost-1.74.0/BoostConfig.cmake:258 (boost_find_component)
/snap/cmake/1399/share/cmake-3.29/Modules/FindBoost.cmake:594 (find_package)
CMakeLists.txt:12 (find_package)
-- Configuring incomplete, errors occurred!
But I have installed Boost 1.74 using apt install libboost-dev. The command automatically installs libboost-program-options1.74-dev as a dependency. AFAIK program_options is a header-only library, and /usr/include/boost/program_options.hpp indeed exists on my server.
What might be the problem?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels