ENH: Set CMake Policy CMP0003 to NEW behavior to build without warnings with the upcoming CMake 2.6 release.

This commit is contained in:
Brad King 2008-03-17 16:22:28 -04:00
parent 317d1705af
commit 33c84b50e9
3 changed files with 14 additions and 1 deletions

View File

@ -1,5 +1,9 @@
PROJECT(CMake) PROJECT(CMake)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4 FATAL_ERROR) CMAKE_MINIMUM_REQUIRED(VERSION 2.4 FATAL_ERROR)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY) MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)

View File

@ -111,6 +111,12 @@ IF(NOT KWSYS_NAMESPACE)
SET(KWSYS_NAMESPACE "kwsys") SET(KWSYS_NAMESPACE "kwsys")
SET(KWSYS_STANDALONE 1) SET(KWSYS_STANDALONE 1)
ENDIF(NOT KWSYS_NAMESPACE) ENDIF(NOT KWSYS_NAMESPACE)
IF(KWSYS_STANDALONE)
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
ENDIF(KWSYS_STANDALONE)
#----------------------------------------------------------------------------- #-----------------------------------------------------------------------------
# The project name is that of the specified namespace. # The project name is that of the specified namespace.

View File

@ -1,4 +1,7 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.0) CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)
PROJECT(LIBCURL C) PROJECT(LIBCURL C)
INCLUDE_REGULAR_EXPRESSION("^.*$") INCLUDE_REGULAR_EXPRESSION("^.*$")