File 0003-Resync-swig-files-with-ones-from-gr_modtool-3.8.0.0.patch of Package gr-fosphor
From 5e250af1a71f045123b203d9f6f5b871d2afd622 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 15 Sep 2019 23:27:09 +0200
Subject: [PATCH 3/3] Resync swig files with ones from gr_modtool 3.8.0.0
---
swig/CMakeLists.txt | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/swig/CMakeLists.txt b/swig/CMakeLists.txt
index 3d56e59..05648c0 100644
--- a/swig/CMakeLists.txt
+++ b/swig/CMakeLists.txt
@@ -1,6 +1,7 @@
# Copyright 2011 Free Software Foundation, Inc.
#
-# This file is part of GNU Radio
+# This file was generated by gr_modtool, a tool from the GNU Radio framework
+# This file is a part of gr-fosphor
#
# GNU Radio is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -21,7 +22,7 @@
# Include swig generation macros
########################################################################
find_package(SWIG)
-find_package(PythonLibs 2)
+find_package(PythonLibs)
if(NOT SWIG_FOUND OR NOT PYTHONLIBS_FOUND)
return()
endif()
@@ -31,11 +32,11 @@ include(GrPython)
########################################################################
# Setup swig generation
########################################################################
-foreach(incdir ${GNURADIO_ALL_INCLUDE_DIRS})
- list(APPEND GR_SWIG_INCLUDE_DIRS ${incdir}/gnuradio/swig)
-endforeach(incdir)
+set(GR_SWIG_INCLUDE_DIRS $<TARGET_PROPERTY:gnuradio::runtime_swig,INTERFACE_INCLUDE_DIRECTORIES>)
+set(GR_SWIG_TARGET_DEPS gnuradio::runtime_swig)
set(GR_SWIG_LIBRARIES gnuradio-fosphor)
+
set(GR_SWIG_DOC_FILE ${CMAKE_CURRENT_BINARY_DIR}/fosphor_swig_doc.i)
set(GR_SWIG_DOC_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/../include/gnuradio/fosphor)
@@ -56,5 +57,5 @@ install(
FILES
fosphor_swig.i
${CMAKE_CURRENT_BINARY_DIR}/fosphor_swig_doc.i
- DESTINATION ${GR_INCLUDE_DIR}/gnuradio/fosphor/swig
+ DESTINATION ${GR_INCLUDE_DIR}/fosphor/swig
)
--
2.23.0