From 4f961bce0a4c8a3433bdbae171a7f0c95aed26cb Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Sat, 26 Apr 2008 13:25:07 -0400 Subject: [PATCH] BUG: don't use CMAKE_MINIMUM_REQUIRED() in find modules, it can change the policy settings done in the projects cmake files (and it doesn't make sense since it is always part of the correct cmake version) Alex --- Modules/FindBoost.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake index fe9025ad4..ab00fcc72 100644 --- a/Modules/FindBoost.cmake +++ b/Modules/FindBoost.cmake @@ -93,7 +93,11 @@ # # this module required CMake 2.5 for the Boost_FIND_VERSION stuff -CMAKE_MINIMUM_REQUIRED(VERSION "2.6" FATAL_ERROR) + +# this must not be done in find modules, it changes the policy settings, which may have been +# set in the projects cmake files. +# beside that this module comes with cmake, so the cmake version is always correct, Alex +# CMAKE_MINIMUM_REQUIRED(VERSION "2.6" FATAL_ERROR) # MESSAGE(STATUS "Finding Boost libraries.... ")