From: Debian Science Maintainers Date: Thu, 8 Feb 2024 16:16:19 +0000 (+0000) Subject: do-not-install-python-scripts X-Git-Tag: archive/raspbian/2.9.0-7+rpi1~5 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3683a69ee98219c812e2c2d79172b3a5f674fdac;p=dune-common.git do-not-install-python-scripts Gbp-Pq: Name do-not-install-python-scripts.patch --- diff --git a/bin/CMakeLists.txt b/bin/CMakeLists.txt index 853a04d..10393ee 100644 --- a/bin/CMakeLists.txt +++ b/bin/CMakeLists.txt @@ -5,7 +5,15 @@ install(PROGRAMS dune-ctest duneproject dunecontrol - dunepackaging.py dune-git-whitespace-hook - rmgenerated.py DESTINATION ${CMAKE_INSTALL_BINDIR}) + +# install these scripts only if Python bindings are enabled +if(DUNE_ENABLE_PYTHONBINDINGS) + install(PROGRAMS + dunepackaging.py + rmgenerated.py + DESTINATION ${CMAKE_INSTALL_BINDIR}) +endif() + +