summaryrefslogtreecommitdiffstats
path: root/Modules/FindDevIL.cmake
diff options
context:
space:
mode:
authorAlexander Neundorf <neundorf@kde.org>2008-11-13 21:46:08 (GMT)
committerAlexander Neundorf <neundorf@kde.org>2008-11-13 21:46:08 (GMT)
commit73117edf04d88f0f908e13cf1fcb8c58d31fcc15 (patch)
treee4b30bbf295c430a7c2d050c891733e974825b5f /Modules/FindDevIL.cmake
parente6268034e9f1ec1c261c81e285b3e45e8b263cb0 (diff)
downloadCMake-73117edf04d88f0f908e13cf1fcb8c58d31fcc15.zip
CMake-73117edf04d88f0f908e13cf1fcb8c58d31fcc15.tar.gz
CMake-73117edf04d88f0f908e13cf1fcb8c58d31fcc15.tar.bz2
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
Diffstat (limited to 'Modules/FindDevIL.cmake')
-rw-r--r--Modules/FindDevIL.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindDevIL.cmake b/Modules/FindDevIL.cmake
index a251135..82ec3f1 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