diff options
-rw-r--r-- | CMakeLists.txt | 4 | ||||
-rw-r--r-- | Source/kwsys/CMakeLists.txt | 6 | ||||
-rw-r--r-- | Utilities/cmcurl/CMakeLists.txt | 5 |
3 files changed, 14 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 20a161f..9342611 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,9 @@ PROJECT(CMake) 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) diff --git a/Source/kwsys/CMakeLists.txt b/Source/kwsys/CMakeLists.txt index 0bedc61..07a3d2d 100644 --- a/Source/kwsys/CMakeLists.txt +++ b/Source/kwsys/CMakeLists.txt @@ -111,6 +111,12 @@ IF(NOT KWSYS_NAMESPACE) SET(KWSYS_NAMESPACE "kwsys") SET(KWSYS_STANDALONE 1) 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. diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt index 666c7a7..3ed177f 100644 --- a/Utilities/cmcurl/CMakeLists.txt +++ b/Utilities/cmcurl/CMakeLists.txt @@ -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) INCLUDE_REGULAR_EXPRESSION("^.*$") |