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
This commit is contained in:
Alexander Neundorf 2008-11-13 16:46:08 -05:00
parent e6268034e9
commit 73117edf04
1 changed files with 1 additions and 2 deletions

View File

@ -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