Skip to content

Commit 9814246

Browse files
committed
Simplify CMakeLists removing unneeded "cmake_policy" statements
1 parent f28f554 commit 9814246

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

CMakeLists.txt

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
11
cmake_minimum_required(VERSION 2.8)
22

3-
#-----------------------------------------------------------------------------
4-
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
5-
#
6-
7-
SET(project_policies
8-
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
9-
CMP0002 # NEW: Logical target names must be globally unique.
10-
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths.
11-
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
12-
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
13-
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
14-
CMP0007 # NEW: List command no longer ignores empty elements.
15-
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
16-
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
17-
CMP0010 # NEW: Bad variable reference syntax is an error.
18-
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
19-
CMP0012 # NEW: if() recognizes numbers and boolean constants.
20-
CMP0013 # NEW: Duplicate binary directories are not allowed.
21-
CMP0014 # NEW: Input directories must have CMakeLists.txt
22-
)
23-
FOREACH(policy ${project_policies})
24-
IF(POLICY ${policy})
25-
CMAKE_POLICY(SET ${policy} NEW)
26-
ENDIF()
27-
ENDFOREACH()
28-
293
#-----------------------------------------------------------------------------
304
project(PythonQt)
315
#-----------------------------------------------------------------------------

generator/CMakeLists.txt

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,5 @@
11
cmake_minimum_required(VERSION 2.8)
22

3-
#-----------------------------------------------------------------------------
4-
# See http://cmake.org/cmake/help/cmake-2-8-docs.html#section_Policies for details
5-
#
6-
7-
SET(project_policies
8-
CMP0001 # NEW: CMAKE_BACKWARDS_COMPATIBILITY should no longer be used.
9-
CMP0002 # NEW: Logical target names must be globally unique.
10-
CMP0003 # NEW: Libraries linked via full path no longer produce linker search paths.
11-
CMP0004 # NEW: Libraries linked may NOT have leading or trailing whitespace.
12-
CMP0005 # NEW: Preprocessor definition values are now escaped automatically.
13-
CMP0006 # NEW: Installing MACOSX_BUNDLE targets requires a BUNDLE DESTINATION.
14-
CMP0007 # NEW: List command no longer ignores empty elements.
15-
CMP0008 # NEW: Libraries linked by full-path must have a valid library file name.
16-
CMP0009 # NEW: FILE GLOB_RECURSE calls should not follow symlinks by default.
17-
CMP0010 # NEW: Bad variable reference syntax is an error.
18-
CMP0011 # NEW: Included scripts do automatic cmake_policy PUSH and POP.
19-
CMP0012 # NEW: if() recognizes numbers and boolean constants.
20-
CMP0013 # NEW: Duplicate binary directories are not allowed.
21-
CMP0014 # NEW: Input directories must have CMakeLists.txt
22-
)
23-
FOREACH(policy ${project_policies})
24-
IF(POLICY ${policy})
25-
CMAKE_POLICY(SET ${policy} NEW)
26-
ENDIF()
27-
ENDFOREACH()
28-
293
#-----------------------------------------------------------------------------
304
project(PythonQtGenerator)
315
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)