[Cmake-commits] [cmake-commits] alex committed FindDevIL.cmake 1.1 1.2

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Nov 13 16:46:10 EST 2008


Update of /cvsroot/CMake/CMake/Modules
In directory public:/mounts/ram/cvs-serv22298

Modified Files:
	FindDevIL.cmake 
Log Message:
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


Index: FindDevIL.cmake
===================================================================
RCS file: /cvsroot/CMake/CMake/Modules/FindDevIL.cmake,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** FindDevIL.cmake	12 Nov 2008 17:26:53 -0000	1.1
--- FindDevIL.cmake	13 Nov 2008 21:46:08 -0000	1.2
***************
*** 13,18 ****
  # Tested under Linux and Windows (MSVC)
  
! CMAKE_MINIMUM_REQUIRED(VERSION 2.6 FATAL_ERROR)
! INCLUDE(${CMAKE_ROOT}/Modules/FindPackageHandleStandardArgs.cmake)
  
  FIND_PATH(IL_INCLUDE_DIR il.h 
--- 13,17 ----
  # Tested under Linux and Windows (MSVC)
  
! INCLUDE(FindPackageHandleStandardArgs)
  
  FIND_PATH(IL_INCLUDE_DIR il.h 



More information about the Cmake-commits mailing list