Explicitly set CMake policy CMP0093 to NEW

This commit is contained in:
Carles Fernandez 2019-07-22 14:46:36 +02:00
parent 09b6b2305e
commit 31b6f9defd
No known key found for this signature in database
GPG Key ID: 4C583C52B0C3877D
1 changed files with 3 additions and 0 deletions

View File

@ -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})"
)