From b454652d835bbc0cd44af3d17451caf51fede6a1 Mon Sep 17 00:00:00 2001 From: Mathieu Westphal Date: Thu, 11 Jul 2024 08:17:12 +0200 Subject: [PATCH] FindOpenVDB.cmake: Fix a cmake 3.30 warning with POLICY CMP0167 --- cmake/FindOpenVDB.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/FindOpenVDB.cmake b/cmake/FindOpenVDB.cmake index c4213c853a..11ebaca9e4 100644 --- a/cmake/FindOpenVDB.cmake +++ b/cmake/FindOpenVDB.cmake @@ -491,6 +491,10 @@ endif() # Add standard dependencies find_package(TBB REQUIRED COMPONENTS tbb) + +if(POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) +endif() find_package(Boost REQUIRED COMPONENTS iostreams) # Add deps for pyopenvdb