Blob Blame History Raw
From 0755993c2e06be319eab20f72217100be98f8988 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Hr=C3=A1zk=C3=BD?= <lhrazky@redhat.com>
Date: Thu, 9 Apr 2020 10:27:34 +0200
Subject: [PATCH] Revert "SWIG: Set CMake policies to remove warnings"

This reverts commit afd511592195b867eab4e49801053dcc904d6dd0, for the
most part. The duplicate include(UseSWIG) is kept removed, but the
cmake_policies actually aren't backwards compatible with Cmake versions
that don't know them, so we can't use them like this.

Setting the policies behavior only removes some warnings, it's probably
better to remove them than to wrap them in Cmake version checks.
---
 bindings/python/CMakeLists.txt | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt
index 8ef97eb08..32973dce0 100644
--- a/bindings/python/CMakeLists.txt
+++ b/bindings/python/CMakeLists.txt
@@ -1,8 +1,5 @@
 find_package(PythonInstDir)
 find_package(SWIG REQUIRED)
-
-cmake_policy(SET CMP0078 OLD)
-cmake_policy(SET CMP0086 OLD)
 include(UseSWIG)
 
 message(STATUS "Building for python${PYTHON_VERSION_MAJOR}")