Просмотр исходного кода

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 лет назад
Родитель
Сommit
4f961bce0a
1 измененных файлов с 5 добавлено и 1 удалено
  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
-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.... ")