From 31b6f9defd1373afccba6cca517a052bde05d213 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Mon, 22 Jul 2019 14:46:36 +0200 Subject: [PATCH] Explicitly set CMake policy CMP0093 to NEW --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9aeba759f..94e370795 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -685,6 +685,9 @@ set_package_properties(Boost PROPERTIES if(CMAKE_VERSION VERSION_LESS 3.14) set(Boost_VERSION_STRING "${Boost_MAJOR_VERSION}.${Boost_MINOR_VERSION}.${Boost_SUBMINOR_VERSION}") endif() +if(POLICY CMP0093) + cmake_policy(SET CMP0093 NEW) # FindBoost reports Boost_VERSION in x.y.z format. +endif() set_package_properties(Boost PROPERTIES DESCRIPTION "Portable C++ source libraries (found: v${Boost_VERSION_STRING})" )