summaryrefslogtreecommitdiffstats
path: root/Modules/FindBoost.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-04-26 17:25:07 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-04-26 17:25:07 (GMT)
commit4f961bce0a4c8a3433bdbae171a7f0c95aed26cb (patch)
treee48b41b36bbc30ef00958e4b1281a7761004db48 /Modules/FindBoost.cmake
parent7fe2737dd987d4a418a2678e2a9759e5f2cd55f2 (diff)
downloadCMake-4f961bce0a4c8a3433bdbae171a7f0c95aed26cb.zip
CMake-4f961bce0a4c8a3433bdbae171a7f0c95aed26cb.tar.gz
CMake-4f961bce0a4c8a3433bdbae171a7f0c95aed26cb.tar.bz2
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
Diffstat (limited to 'Modules/FindBoost.cmake')
-rw-r--r--Modules/FindBoost.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index fe9025a..ab00fcc 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.... ")