Browse Source

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

Alexander Neundorf 17 years ago
parent
commit
73117edf04
1 changed files with 1 additions and 2 deletions
  1. 1 2
      Modules/FindDevIL.cmake

+ 1 - 2
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