From 73117edf04d88f0f908e13cf1fcb8c58d31fcc15 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Thu, 13 Nov 2008 16:46:08 -0500 Subject: [PATCH] BUG: the modules shipped with cmake don't need CMAKE_MINIMUM_REQUIRED(VERSION), because the cmake they are shipped with is always ok. Additionally, if a Find-module does CMAKE_MINIMUM_REQUIRED(), it changes the policies as they may be set up by the project. So this shouldn't be done in a Find-module (or surrounded by policy-push/pop commands) Alex --- Modules/FindDevIL.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Modules/FindDevIL.cmake b/Modules/FindDevIL.cmake index a251135e6..82ec3f10a 100644 --- a/Modules/FindDevIL.cmake +++ b/Modules/FindDevIL.cmake @@ -12,8 +12,7 @@ # TODO: Add version support. # Tested under Linux and Windows (MSVC) -CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR) -INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake) +INCLUDE(FindPackageHandleStandardArgs) FIND_PATH(IL_INCLUDE_DIR il.h PATH_SUFFIXES include IL