diff --git a/Installation/cmake/modules/CGAL_TweakFindBoost.cmake b/Installation/cmake/modules/CGAL_TweakFindBoost.cmake index a27ff2d960b..457f84f342d 100644 --- a/Installation/cmake/modules/CGAL_TweakFindBoost.cmake +++ b/Installation/cmake/modules/CGAL_TweakFindBoost.cmake @@ -25,6 +25,9 @@ # Boost versions, even if the file FindBoost.cmake is old. if( NOT CGAL_TweakFindBoost ) + if(POLICY CMP0077) + cmake_policy(SET CMP0077 OLD) + endif() if(DEFINED CGAL_Boost_USE_STATIC_LIBS) # If the option is loaded from CGALConfig.h, use its value as default # value. But the user will still have the choice to change the