File 0002-fix-linking-when-Wl-no-undefined-is-set.patch of Package createrepo_c.10513

From 0f29df0f2e974e28fcb45668d6a8af267b4d40ff Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= <amatej@redhat.com>
Date: Fri, 22 Feb 2019 09:49:15 +0100
Subject: [PATCH] fix linking when -Wl,--no-undefined is set

---
 src/python/CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/python/CMakeLists.txt b/src/python/CMakeLists.txt
index 14b6e9c..dbd9330 100644
--- a/src/python/CMakeLists.txt
+++ b/src/python/CMakeLists.txt
@@ -14,7 +14,7 @@ if (NOT SKBUILD)
         FIND_PACKAGE(PythonInterp 2 EXACT REQUIRED)
     elseif (${PYTHON_DESIRED} STREQUAL "3")
         PYTHON_UNSET()
-        SET(Python_ADDITIONAL_VERSIONS 3 CACHE INTERNAL "")
+        SET(Python_ADDITIONAL_VERSIONS 3.0 CACHE INTERNAL "")
         FIND_PACKAGE(PythonLibs 3 EXACT)
         FIND_PACKAGE(PythonInterp 3 EXACT REQUIRED)
     elseif (EXISTS ${PYTHON_DESIRED})
-- 
2.20.1

openSUSE Build Service is sponsored by