From 90211cca556ae8a32f043ed48ca0d60f766efa85 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 27 Oct 2024 14:10:52 +0100 Subject: [PATCH] fix(cmake): use boost's own cmake config file (#5679) --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 02313589..603c9c42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.15) cmake_policy(SET CMP0087 NEW) # evaluates generator expressions in `install(CODE/SCRIPT)` cmake_policy(SET CMP0091 NEW) # select MSVC runtime library through `CMAKE_MSVC_RUNTIME_LIBRARY` +if (POLICY CMP0167) + cmake_policy(SET CMP0167 NEW) # find Boost's own CMake config file +endif () include(FeatureSummary) list(APPEND CMAKE_MODULE_PATH