Skip to content

FindBoost module is removed in cmake 3.30 #133

@e-kwsm

Description

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

-- Found compiled maeparser library at
CMake Warning (dev) at CMakeLists.txt:78 (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")
CMake Warning (dev) at example_dir/CMakeLists.txt:13 (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
CMake Warning (dev) at test/CMakeLists.txt:14 (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 unit_test_framework

find_package(Boost REQUIRED)

find_package(Boost COMPONENTS filesystem REQUIRED)

find_package(Boost COMPONENTS filesystem 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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions