From: Debian Science Maintainers Date: Thu, 7 Nov 2024 15:59:08 +0000 (+0100) Subject: do-not-install-python-scripts X-Git-Tag: archive/raspbian/2.9.0-8+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9bdd01546a5b76236632b4cb030e233c3819fb53;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() + +