Could NOT find Boost (missing: filesystem) (found version "1.64.0")

Viewed 7631

This is in my CMakeLists.txt:

cmake_minimum_required(VERSION 3.1.0)

project(myProject)

set(EXECUTABLE_OUTPUT_PATH ./bin/${CMAKE_BUILD_TYPE})

find_package(Boost REQUIRED COMPONENTS filesystem)

I compiled Boost 1.64.0 from source. The Boost compilation succeeded, and the filesystem headers are present in the Boost installation directory. I then pointed Boost_INCLUDE_DIR to its base folder (the one containing bootstrap and b2.exe).

I get this CMake output:

CMake Error at C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:165 (message):
  Could NOT find Boost (missing: filesystem) (found version "1.64.0")
Call Stack (most recent call first):
  C:/Program Files/CMake/share/cmake-3.18/Modules/FindPackageHandleStandardArgs.cmake:458 (_FPHSA_FAILURE_MESSAGE)
  C:/Program Files/CMake/share/cmake-3.18/Modules/FindBoost.cmake:2177 (find_package_handle_standard_args)
  CMakeLists.txt:9 (find_package)


Configuring incomplete, errors occurred!

What does this mean? How can CMake "NOT find Boost", but find version 1.64.0?

0 Answers
Related