[Cmake-commits] [cmake-commits] alex committed FindBoost.cmake 1.6 1.7

cmake-commits at cmake.org cmake-commits at cmake.org
Sat Apr 26 13:25:09 EDT 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv21928

Modified Files:
	FindBoost.cmake 
Log Message:
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



Index: FindBoost.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindBoost.cmake,v
retrieving revision 1.6
retrieving revision 1.7
diff -C 2 -d -r1.6 -r1.7
*** FindBoost.cmake	22 Apr 2008 17:32:07 -0000	1.6
--- FindBoost.cmake	26 Apr 2008 17:25:07 -0000	1.7
***************
*** 94,98 ****
  
  # this module required CMake 2.5 for the Boost_FIND_VERSION stuff
! CMAKE_MINIMUM_REQUIRED(VERSION "2.6" FATAL_ERROR)
  
  # MESSAGE(STATUS "Finding Boost libraries.... ")
--- 94,102 ----
  
  # this module required CMake 2.5 for the Boost_FIND_VERSION stuff
! 
! # 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.... ")



More information about the Cmake-commits mailing list