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
This commit is contained in:
Alexander Neundorf 2008-04-26 13:25:07 -04:00
parent 7fe2737dd9
commit 4f961bce0a
1 changed files with 5 additions and 1 deletions

View File

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