Blame SOURCES/0001-Revert-SWIG-Set-CMake-policies-to-remove-warnings.patch

9f20c2
From 0755993c2e06be319eab20f72217100be98f8988 Mon Sep 17 00:00:00 2001
9f20c2
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= <lhrazky@redhat.com>
9f20c2
Date: Thu, 9 Apr 2020 10:27:34 +0200
9f20c2
Subject: [PATCH] Revert "SWIG: Set CMake policies to remove warnings"
9f20c2
9f20c2
This reverts commit afd511592195b867eab4e49801053dcc904d6dd0, for the
9f20c2
most part. The duplicate include(UseSWIG) is kept removed, but the
9f20c2
cmake_policies actually aren't backwards compatible with Cmake versions
9f20c2
that don't know them, so we can't use them like this.
9f20c2
9f20c2
Setting the policies behavior only removes some warnings, it's probably
9f20c2
better to remove them than to wrap them in Cmake version checks.
9f20c2
---
9f20c2
 bindings/python/CMakeLists.txt | 3 ---
9f20c2
 1 file changed, 3 deletions(-)
9f20c2
9f20c2
diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
9f20c2
index 8ef97eb08..32973dce0 100644
9f20c2
--- a/bindings/python/CMakeLists.txt
9f20c2
+++ b/bindings/python/CMakeLists.txt
9f20c2
@@ -1,8 +1,5 @@
9f20c2
 find_package(PythonInstDir)
9f20c2
 find_package(SWIG REQUIRED)
9f20c2
-
9f20c2
-cmake_policy(SET CMP0078 OLD)
9f20c2
-cmake_policy(SET CMP0086 OLD)
9f20c2
 include(UseSWIG)
9f20c2
 
9f20c2
 message(STATUS "Building for python${PYTHON_VERSION_MAJOR}")