KWSys: Set CMP0003 to NEW
The commit "Enable loose loop constructs in KWSys" set the minimum required CMake version to 2.4.5. This regressed the setting of CMP0003, so we restore it in this commit.
This commit is contained in:
parent
268448b891
commit
9ec851bc90
|
@ -104,6 +104,9 @@
|
||||||
# written.
|
# written.
|
||||||
|
|
||||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
|
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.5 FATAL_ERROR)
|
||||||
|
IF(COMMAND CMAKE_POLICY)
|
||||||
|
CMAKE_POLICY(SET CMP0003 NEW)
|
||||||
|
ENDIF(COMMAND CMAKE_POLICY)
|
||||||
|
|
||||||
# Allow empty endif() and such with CMake 2.4.
|
# Allow empty endif() and such with CMake 2.4.
|
||||||
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
|
SET(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS 1)
|
||||||
|
@ -116,11 +119,6 @@ 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)
|
|
||||||
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.
|
||||||
|
|
Loading…
Reference in New Issue