Skip to content

Commit d9336c2

Browse files
authoredJun 5, 2018
Merge pull request #7176 from nyalldawson/cmp0040
Don't use old policy for CMP0040
2 parents b69389b + bd0ec6e commit d9336c2

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed
 

‎python/CMakeLists.txt

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,6 @@ ADD_CUSTOM_TARGET(clean-staged-plugins
3535
COMMAND ${CMAKE_COMMAND} -E remove_directory "${PYTHON_OUTPUT_DIRECTORY}/plugins"
3636
)
3737

38-
IF(POLICY CMP0040) # in CMake 3.0.0+
39-
# Skip 'TARGET signature of add_custom_command() must exist' warning, triggered by macro expansion
40-
CMAKE_POLICY (PUSH) # see POP below (NOTE: must wrap related macros, which record policies)
41-
CMAKE_POLICY (SET CMP0040 OLD) # temporary policy for staging/py_compile macros
42-
ENDIF(POLICY CMP0040)
43-
4438
# Macro to byte-compile a target's staged Python resource(s)
4539
MACRO(PY_COMPILE TARGET_NAME RESOURCE_PATHS)
4640
IF(WITH_PY_COMPILE)
@@ -73,10 +67,6 @@ ADD_SUBDIRECTORY(pyplugin_installer)
7367
ADD_SUBDIRECTORY(ext-libs)
7468
ADD_SUBDIRECTORY(testing)
7569

76-
IF(POLICY CMP0040)
77-
CMAKE_POLICY (POP) # see PUSH above
78-
ENDIF(POLICY CMP0040)
79-
8070
INCLUDE_DIRECTORIES(SYSTEM
8171
${PYTHON_INCLUDE_PATH}
8272
${SIP_INCLUDE_DIR}

0 commit comments

Comments
 (0)
Please sign in to comment.