Skip to content

FindBoost module is removed in cmake 3.30 #85

@e-kwsm

Description

@e-kwsm
$ cmake -S . -B build

-- Detecting CXX compile features - done
CMake Warning (dev) at CMakeLists.txt:42 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Boost: /usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake (found version "1.88.0") found components: iostreams
CMake Warning (dev) at CMakeLists.txt:47 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found ZLIB: /usr/lib/libz.so (found version "1.3.1")
-- Using zlib library for iostreams dependency.
CMake Warning (dev) at test/CMakeLists.txt:3 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found Boost: /usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake (found version "1.88.0") found components: filesystem iostreams unit_test_framework

find_package(Boost COMPONENTS iostreams REQUIRED)

find_package(Boost COMPONENTS zlib QUIET)

find_package(Boost COMPONENTS filesystem iostreams unit_test_framework REQUIRED)

https://cmake.org/cmake/help/v3.30/module/FindBoost.html

This can be fixed by setting CMP0167 or appending CONFIG to find_package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions