Skip to content

How to set BOOST_LIBRARYDIR or BOOST_ROOT? #123

@vonnenaut

Description

@vonnenaut

Hi. I'm getting the following error messages in CMake GUI in Windows 10, when pressing configure. I'd much prefer to use cmake in Cygwin, but that's not working either so at this point anything that works would be great since I just want to learn C++ but can't currently run the tests, unfortunately.

The error message states:
"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."

How do I set BOOST_LIBRARYDIR or BOOST_ROOT?

CMake GUI error:

`CMake Error at C:/Program Files/CMake/share/cmake-3.8/Modules/FindBoost.cmake:1842 (message):
Unable to find the requested Boost libraries.

Boost version: 1.63.0

Boost include path: C:/Program Files/boost/boost_1_63_0

Could not find the following static Boost libraries:

      boost_unit_test_framework
      boost_date_time
      boost_regex

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:14 (find_package)

CMake Warning (dev) at CMakeLists.txt:17 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "MSVC" will no longer be dereferenced when the policy
is set to NEW. Since the policy is not set the OLD behavior will be used.
This warning is for project developers. Use -Wno-dev to suppress it.

Configuring incomplete, errors occurred!
See also "C:/Program Files/CMake/bin/CMakeFiles/CMakeOutput.log".`

Cygwin error:

$ cmake -G "Unix Makefiles" .. CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool. CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage -- Configuring incomplete, errors occurred!

And so, additionally, how do I set CMAKE_MAKE_PROGRAM and CMAKE_CXX_COMPILER?

Any help is much appreciated, thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions