From e51ac2e482018dcffe6479e24762ee52c61a39f4 Mon Sep 17 00:00:00 2001
From: Timo Koch <timo.koch@iws.uni-stuttgart.de>
Date: Fri, 19 Nov 2021 17:00:59 +0100
Subject: [PATCH] [python] Only install lib when packacking

---
 python/dumux/common/CMakeLists.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/python/dumux/common/CMakeLists.txt b/python/dumux/common/CMakeLists.txt
index ffc35a5823..65f0a6b1f5 100644
--- a/python/dumux/common/CMakeLists.txt
+++ b/python/dumux/common/CMakeLists.txt
@@ -4,4 +4,7 @@ add_python_targets(common
 )
 dune_add_pybind11_module(NAME _common)
 set_property(TARGET _common PROPERTY LINK_LIBRARIES dunecommon dunegrid APPEND)
-install(TARGETS _common LIBRARY DESTINATION python/dumux/common)
+
+if(SKBUILD)
+  install(TARGETS _common LIBRARY DESTINATION python/dumux/common)
+endif()
-- 
GitLab