Browse Source

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

Alexander Neundorf 17 years ago
parent
commit
4f961bce0a
1 changed files with 5 additions and 1 deletions
  1. 5 1
      Modules/FindBoost.cmake

+ 5 - 1
Modules/FindBoost.cmake

@@ -93,7 +93,11 @@
 #
 #
 
 
 # this module required CMake 2.5 for the Boost_FIND_VERSION stuff
 # 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.... ")
 # MESSAGE(STATUS "Finding Boost libraries.... ")