0

What I did:

I built the library as described here:

> cd $boost_path
> bootstrap.bat
> b2 address-model=64 architecture=x86 --with-test link=shared --prefix=$boost_installation_prefix install

My $boost_path is P:\boost_1_65_1 and $boost_installation_prefix is a folder called boosttest in P:\boost_1_65_1

And then in my cmake I try to find it as follows:

project(Test)
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)

# Get Boost
set(BOOST_ROOT "P:/boost_1_65_1") 
find_package(Boost COMPONENTS unit_test_framework)

But CMake simply says: Could NOT find Boost

What am I doing wrong? I suspect I am building the library in the wrong location, but then where do I put it?

Moody
  • 1,297
  • 2
  • 12
  • 21

0 Answers0