diff --git a/cpp/CMakeLists.txt b/cpp/CMakeLists.txt index f2500b3a72f40..10f54bcd5748b 100644 --- a/cpp/CMakeLists.txt +++ b/cpp/CMakeLists.txt @@ -71,6 +71,13 @@ if(POLICY CMP0135) cmake_policy(SET CMP0135 NEW) endif() +# https://cmake.org/cmake/help/latest/policy/CMP0167.html +# +# Use Boost's CMake packages instead of FindBoost.cmake in CMake. +if(POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) +endif() + # https://cmake.org/cmake/help/latest/policy/CMP0170.html # # CMP0170 is for enforcing dependency populations by users with