diff options
author | Alexander Neundorf <neundorf@kde.org> | 2008-11-13 16:46:08 -0500 |
---|---|---|
committer | Alexander Neundorf <neundorf@kde.org> | 2008-11-13 16:46:08 -0500 |
commit | 73117edf04d88f0f908e13cf1fcb8c58d31fcc15 (patch) | |
tree | e4b30bbf295c430a7c2d050c891733e974825b5f /Modules/FindDevIL.cmake | |
parent | e6268034e9f1ec1c261c81e285b3e45e8b263cb0 (diff) | |
download | cmake-73117edf04d88f0f908e13cf1fcb8c58d31fcc15.tar.gz |
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.cmake | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/FindDevIL.cmake b/Modules/FindDevIL.cmake index a251135e67..82ec3f10aa 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 |