aboutsummaryrefslogtreecommitdiffstats
path: root/gr-soapy
diff options
context:
space:
mode:
authorMarcus Müller <mmueller@gnuradio.org>2021-10-21 13:45:54 +0200
committermormj <34754695+mormj@users.noreply.github.com>2021-10-27 14:32:39 -0400
commitac9b554b9b4c546fc009037b8e3586f2e052f115 (patch)
treef014b154deefeedfb33549888e93216731f76d7f /gr-soapy
parentRemove unused volk_benchmark (diff)
downloadgnuradio-ac9b554b9b4c546fc009037b8e3586f2e052f115.tar.xz
gnuradio-ac9b554b9b4c546fc009037b8e3586f2e052f115.zip
Soapy: Make sure target uses expected C++ standard
This is a guess, but it seems SoapySDR was exporting its C++ standard (C++11). This led to problems when using C++17 features in gr-soapy Signed-off-by: Marcus Müller <mmueller@gnuradio.org> (cherry picked from commit 79d7e06e40513f2f15d904d5d7dbd323aadc8767) Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
Diffstat (limited to 'gr-soapy')
-rw-r--r--gr-soapy/lib/CMakeLists.txt2
-rw-r--r--gr-soapy/python/soapy/bindings/CMakeLists.txt2
2 files changed, 4 insertions, 0 deletions
diff --git a/gr-soapy/lib/CMakeLists.txt b/gr-soapy/lib/CMakeLists.txt
index c7667a2a5..fd767ab43 100644
--- a/gr-soapy/lib/CMakeLists.txt
+++ b/gr-soapy/lib/CMakeLists.txt
@@ -15,6 +15,8 @@ add_library(gnuradio-soapy
sink_impl.cc
)
+target_compile_features(gnuradio-soapy PRIVATE ${GR_CXX_VERSION_FEATURE})
+
target_link_libraries(gnuradio-soapy PUBLIC
gnuradio-runtime
${SoapySDR_LIBRARIES}
diff --git a/gr-soapy/python/soapy/bindings/CMakeLists.txt b/gr-soapy/python/soapy/bindings/CMakeLists.txt
index 6ba329bfa..ad4d9c122 100644
--- a/gr-soapy/python/soapy/bindings/CMakeLists.txt
+++ b/gr-soapy/python/soapy/bindings/CMakeLists.txt
@@ -27,4 +27,6 @@ GR_PYBIND_MAKE_CHECK_HASH(soapy
gr::soapy
"${soapy_python_files}")
+target_compile_features(soapy_python PRIVATE ${GR_CXX_VERSION_FEATURE})
+
install(TARGETS soapy_python DESTINATION ${GR_PYTHON_DIR}/gnuradio/soapy COMPONENT pythonapi)